Update apps/web/src/pages/templates/[id].tsx
Co-authored-by: Copilot <[email protected]>
This commit is contained in:
co-authored by
Copilot
parent
8a38766c02
commit
de106f9d91
@@ -118,7 +118,7 @@ export default function TemplateEditorPage() {
|
||||
}
|
||||
};
|
||||
|
||||
if (!template || !editedTemplate.type) {
|
||||
if (!template || Object.keys(editedTemplate).length === 0) {
|
||||
return (
|
||||
<DashboardLayout>
|
||||
<div className="flex items-center justify-center min-h-[400px]">
|
||||
|
||||
Reference in New Issue
Block a user