From b73fd456cb357cf06c86f89f48ab354fbbb6c88a Mon Sep 17 00:00:00 2001 From: Nariman Jelveh Date: Fri, 23 Oct 2026 14:04:42 -0700 Subject: [PATCH] fix(dashboard): handle the Properties stat failure instead of leaving it unhandled puter.fs.stat both calls the error callback and rejects. The properties dialog rendered the error from the callback but dropped the promise, so opening it on a deleted item or offline logged an unhandled rejection. --- src/gui/src/UI/Dashboard/UIItemPropertiesModal.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/src/UI/Dashboard/UIItemPropertiesModal.js b/src/gui/src/UI/Dashboard/UIItemPropertiesModal.js index 73df10740..2532b8e1f 100644 --- a/src/gui/src/UI/Dashboard/UIItemPropertiesModal.js +++ b/src/gui/src/UI/Dashboard/UIItemPropertiesModal.js @@ -289,7 +289,9 @@ export default function UIItemPropertiesModal ({ name, path: item_path, uid, $co if ( closed ) return; $list.html(`
${i18n('error_unknown_cause')}
`); }, - }); + }) + // The error callback renders the failure; the promise rejects with it too. + .catch(() => {}); return { close }; }