Skip to content

Commit

Permalink
fix: folder validation error
Browse files Browse the repository at this point in the history
Signed-off-by: Scott Dover <[email protected]>
  • Loading branch information
Scott Dover authored and Scott Dover committed Nov 8, 2024
1 parent 285fcb7 commit ae03a77
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/src/components/ContentNavigator/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,9 @@ class ContentNavigator implements SubscriptionProvider {
? Messages.RenameFolderTitle
: Messages.RenameFileTitle,
value: resource.name,
validateInput: isContainer ? folderValidator : fileValidator,
validateInput: isContainer
? (value) => folderValidator(value, this.sourceType)
: fileValidator,
});
if (!name || name === resource.name) {
return;
Expand Down

0 comments on commit ae03a77

Please sign in to comment.