mirror of
https://github.com/ansible/awx.git
synced 2026-07-08 14:58:03 -02:30
fixes erroneous render
This commit is contained in:
@@ -167,10 +167,8 @@ function SurveyList({
|
|||||||
</AlertModal>
|
</AlertModal>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
if (!questions || questions?.length <= 0) {
|
||||||
return (
|
return (
|
||||||
<>
|
|
||||||
{(!questions || questions?.length <= 0) && (
|
|
||||||
<EmptyState variant="full">
|
<EmptyState variant="full">
|
||||||
<EmptyStateIcon icon={CubesIcon} />
|
<EmptyStateIcon icon={CubesIcon} />
|
||||||
<Title size="lg" headingLevel="h3">
|
<Title size="lg" headingLevel="h3">
|
||||||
@@ -181,7 +179,10 @@ function SurveyList({
|
|||||||
</EmptyStateBody>
|
</EmptyStateBody>
|
||||||
<ToolbarAddButton isDisabled={!canEdit} linkTo={`${match.url}/add`} />
|
<ToolbarAddButton isDisabled={!canEdit} linkTo={`${match.url}/add`} />
|
||||||
</EmptyState>
|
</EmptyState>
|
||||||
)}
|
);
|
||||||
|
}
|
||||||
|
return (
|
||||||
|
<>
|
||||||
<SurveyToolbar
|
<SurveyToolbar
|
||||||
isAllSelected={isAllSelected}
|
isAllSelected={isAllSelected}
|
||||||
onSelectAll={handleSelectAll}
|
onSelectAll={handleSelectAll}
|
||||||
|
|||||||
Reference in New Issue
Block a user