We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 07daa9c + 482f6c7 commit 7e507bbCopy full SHA for 7e507bb
1 file changed
frontend/components/pages/ItemPage/ItemPage.js
@@ -525,8 +525,7 @@ export default function ItemPage() {
525
// update settings from settings select
526
dispatch(
527
attemptUpdateItemSettings(itemId, {
528
- ...item,
529
- path: parentPath,
+ path: parentPath ? parentPath : item.path, // parentPath will be null on cabinet
530
accessGroups: {
531
read: accessGroups.read.map((groups) => groups._id),
532
edit: accessGroups.edit.map((groups) => groups._id),
@@ -561,7 +560,7 @@ export default function ItemPage() {
561
560
</IconButton>
562
</Stack>
563
));
564
- }, []);
+ }, [isBookmarked]);
565
566
if (!visible || item == null) return <div>Loading...</div>;
567
0 commit comments