mirror of
https://github.com/HeyPuter/puter.git
synced 2026-11-05 21:46:51 +00:00
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.
This commit is contained in:
1 parent
589a411f53
commit
b73fd456cb
1 file changed
+3
-1
@@ -289,7 +289,9 @@ export default function UIItemPropertiesModal ({ name, path: item_path, uid, $co
|
||||
if ( closed ) return;
|
||||
$list.html(`<div class="item-props-empty">${i18n('error_unknown_cause')}</div>`);
|
||||
},
|
||||
});
|
||||
})
|
||||
// The error callback renders the failure; the promise rejects with it too.
|
||||
.catch(() => {});
|
||||
|
||||
return { close };
|
||||
}
|
||||
Reference in new issue
Block a user