From 28a637bfcd406e41aca0fa389582b5841e242c99 Mon Sep 17 00:00:00 2001 From: Flawid DSouza Date: Thu, 12 Dec 2024 09:59:10 +0530 Subject: [PATCH] fix(ui): Uncaught (in promise) TypeError: Cannot read properties of null (reading '_id') at Proxy.updateCollectionItem (FolderPanel.vue:105:46) - occurs when closing folder panel --- packages/ui/src/components/FolderPanel.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/ui/src/components/FolderPanel.vue b/packages/ui/src/components/FolderPanel.vue index 9c0c8169..9833a586 100644 --- a/packages/ui/src/components/FolderPanel.vue +++ b/packages/ui/src/components/FolderPanel.vue @@ -82,7 +82,9 @@ export default { collectionItemToEdit: { deep: true, handler() { - this.updateCollectionItem(this.collectionItemToEdit) + if(this.collectionItemToEdit) { + this.updateCollectionItem(this.collectionItemToEdit) + } } } },