Skip to content

Build your personal knowledge base with Trilium Notes

fix(client): freeze if empty doc

Elian Doran7b8c4d217919
diff --git a/src/public/app/widgets/type_widgets/doc.ts b/src/public/app/widgets/type_widgets/doc.ts
index 47e65fc787..2e8b2ab6fa 100644
--- a/src/public/app/widgets/type_widgets/doc.ts
+++ b/src/public/app/widgets/type_widgets/doc.ts
@@ -79,6 +79,7 @@ export default class DocTypeWidget extends TypeWidget {
});
} else {
this.$content.empty();
+ resolve();
}
});
}