Skip to content

Commit d040a77

Browse files
Scott DoverScott Dover
authored andcommitted
fix: folder validation error
Signed-off-by: Scott Dover <[email protected]>
1 parent 8b3e24c commit d040a77

File tree

1 file changed

+3
-1
lines changed
  • client/src/components/ContentNavigator

1 file changed

+3
-1
lines changed

client/src/components/ContentNavigator/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,9 @@ class ContentNavigator implements SubscriptionProvider {
227227
? Messages.RenameFolderTitle
228228
: Messages.RenameFileTitle,
229229
value: resource.name,
230-
validateInput: isContainer ? folderValidator : fileValidator,
230+
validateInput: isContainer
231+
? (value) => folderValidator(value, this.sourceType)
232+
: fileValidator,
231233
});
232234
if (!name || name === resource.name) {
233235
return;

0 commit comments

Comments
 (0)