From d040a77a336f8898b4453c2276470f9531b2fe06 Mon Sep 17 00:00:00 2001 From: Scott Dover Date: Tue, 29 Oct 2024 09:07:12 -0400 Subject: [PATCH] fix: folder validation error Signed-off-by: Scott Dover --- client/src/components/ContentNavigator/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/src/components/ContentNavigator/index.ts b/client/src/components/ContentNavigator/index.ts index 54b6849d8..566b59ccd 100644 --- a/client/src/components/ContentNavigator/index.ts +++ b/client/src/components/ContentNavigator/index.ts @@ -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;