fix userEmail
This commit is contained in:
parent
547baddee9
commit
da3597a04d
@ -9,6 +9,7 @@ export default function Component({ service }) {
|
|||||||
|
|
||||||
const { widget } = service;
|
const { widget } = service;
|
||||||
const { azureType } = widget;
|
const { azureType } = widget;
|
||||||
|
const { userEmail } = widget;
|
||||||
const { data: pipelineData, error: pipelineError } = useWidgetAPI(widget, "pipeline");
|
const { data: pipelineData, error: pipelineError } = useWidgetAPI(widget, "pipeline");
|
||||||
const { data: prData, error: prError } = useWidgetAPI(widget, "pr");
|
const { data: prData, error: prError } = useWidgetAPI(widget, "pr");
|
||||||
|
|
||||||
@ -38,7 +39,7 @@ export default function Component({ service }) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
else if (azureType === "PullRequest") {
|
else if (azureType === "PullRequest") {
|
||||||
const { userEmail } = widget;
|
|
||||||
|
|
||||||
if (prError) {
|
if (prError) {
|
||||||
return <Container service={service} error={prError} />;
|
return <Container service={service} error={prError} />;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user