Skip to content

Commit 7e507bb

Browse files
authored
Merge branch 'feature/frontend/#33' of https://github.com/osamhack2021/Web_Handover_Handover into feature/frontend/#33
2 parents 07daa9c + 482f6c7 commit 7e507bb

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

frontend/components/pages/ItemPage/ItemPage.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -525,8 +525,7 @@ export default function ItemPage() {
525525
// update settings from settings select
526526
dispatch(
527527
attemptUpdateItemSettings(itemId, {
528-
...item,
529-
path: parentPath,
528+
path: parentPath ? parentPath : item.path, // parentPath will be null on cabinet
530529
accessGroups: {
531530
read: accessGroups.read.map((groups) => groups._id),
532531
edit: accessGroups.edit.map((groups) => groups._id),
@@ -561,7 +560,7 @@ export default function ItemPage() {
561560
</IconButton>
562561
</Stack>
563562
));
564-
}, []);
563+
}, [isBookmarked]);
565564

566565
if (!visible || item == null) return <div>Loading...</div>;
567566

0 commit comments

Comments
 (0)