diff --git a/specifyweb/frontend/js_src/lib/components/AppResources/Editor.tsx b/specifyweb/frontend/js_src/lib/components/AppResources/Editor.tsx
index aee52d71d0c..b3b48965c77 100644
--- a/specifyweb/frontend/js_src/lib/components/AppResources/Editor.tsx
+++ b/specifyweb/frontend/js_src/lib/components/AppResources/Editor.tsx
@@ -240,11 +240,18 @@ export function AppResourceEditor({
const footer = (
<>
- navigate('/specify/resources/', { replace: true })}
- >
- {commonText.close()}
-
+ {
+ // handleClone is undefined when the editor is used in a dialog, so don't show the close button in that case
+ handleClone === undefined ? undefined : (
+
+ navigate('/specify/resources/', { replace: true })
+ }
+ >
+ {commonText.close()}
+
+ )
+ }
{formElement !== null &&
hasToolPermission(