We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebb9600 commit 23c3fb9Copy full SHA for 23c3fb9
1 file changed
ui/v2.5/src/components/Shared/FolderSelect/FolderSelect.tsx
@@ -15,6 +15,7 @@ interface IProps {
15
defaultDirectories?: string[];
16
appendButton?: JSX.Element;
17
collapsible?: boolean;
18
+ /** Re-wrap stripped path in quotes if it contains spaces (needed by PathFilter) */
19
quotePath?: boolean;
20
hideError?: boolean;
21
}
@@ -50,6 +51,7 @@ const _FolderSelect: React.FC<IProps> = ({
50
51
52
function setInstant(value: string) {
53
const stripped = TextUtils.stripQuotes(value);
54
+ // re-quote if backend expects it (PathFilter); otherwise keep stripped
55
const normalizedValue =
56
quotePath && stripped.includes(" ")
57
? TextUtils.addQuotes(stripped)
0 commit comments