Skip to content

Commit

Permalink
fix immutable parent folder msg
Browse files Browse the repository at this point in the history
  • Loading branch information
chetbae committed Jul 7, 2023
1 parent 6b89c1d commit 71fbc73
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Dashboard/DocumentSelector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,8 @@ function handleCreateFolder() {
// abort if parent folder is immutable
const isImmutable = currentPath.at(-1).metadata['immutable'];
if (isImmutable) {
window.alert(`Cannot add folder. ${currentPath.join('/')} is immutable.`);
const stringPath = currentPath.map(folder => folder.name).join('/');
window.alert(`Cannot add folder. ${stringPath} is immutable.`);
return;
}

Expand Down

0 comments on commit 71fbc73

Please sign in to comment.