diff --git a/awx/ui_next/src/screens/Template/Survey/SurveyList.jsx b/awx/ui_next/src/screens/Template/Survey/SurveyList.jsx
index a28e6c813c..dd06e0bca9 100644
--- a/awx/ui_next/src/screens/Template/Survey/SurveyList.jsx
+++ b/awx/ui_next/src/screens/Template/Survey/SurveyList.jsx
@@ -167,21 +167,22 @@ function SurveyList({
);
}
-
+ if (!questions || questions?.length <= 0) {
+ return (
+
+
+
+ {i18n._(t`No survey questions found.`)}
+
+
+ {i18n._(t`Please add survey questions.`)}
+
+
+
+ );
+ }
return (
<>
- {(!questions || questions?.length <= 0) && (
-
-
-
- {i18n._(t`No survey questions found.`)}
-
-
- {i18n._(t`Please add survey questions.`)}
-
-
-
- )}