mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 03:10:42 -03:30
fixes erroneous render
This commit is contained in:
parent
ad536ec3d9
commit
496862592a
@ -167,21 +167,22 @@ function SurveyList({
|
||||
</AlertModal>
|
||||
);
|
||||
}
|
||||
|
||||
if (!questions || questions?.length <= 0) {
|
||||
return (
|
||||
<EmptyState variant="full">
|
||||
<EmptyStateIcon icon={CubesIcon} />
|
||||
<Title size="lg" headingLevel="h3">
|
||||
{i18n._(t`No survey questions found.`)}
|
||||
</Title>
|
||||
<EmptyStateBody>
|
||||
{i18n._(t`Please add survey questions.`)}
|
||||
</EmptyStateBody>
|
||||
<ToolbarAddButton isDisabled={!canEdit} linkTo={`${match.url}/add`} />
|
||||
</EmptyState>
|
||||
);
|
||||
}
|
||||
return (
|
||||
<>
|
||||
{(!questions || questions?.length <= 0) && (
|
||||
<EmptyState variant="full">
|
||||
<EmptyStateIcon icon={CubesIcon} />
|
||||
<Title size="lg" headingLevel="h3">
|
||||
{i18n._(t`No survey questions found.`)}
|
||||
</Title>
|
||||
<EmptyStateBody>
|
||||
{i18n._(t`Please add survey questions.`)}
|
||||
</EmptyStateBody>
|
||||
<ToolbarAddButton isDisabled={!canEdit} linkTo={`${match.url}/add`} />
|
||||
</EmptyState>
|
||||
)}
|
||||
<SurveyToolbar
|
||||
isAllSelected={isAllSelected}
|
||||
onSelectAll={handleSelectAll}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user