Skip to content

Commit f52621a

Browse files
authored
Merge pull request #2141 from lyp000119/main
fix: Fix name verification error when importing templates
2 parents 18deedd + aee3d77 commit f52621a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/app/pages/MainPage/pages/VizPage/SaveForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export function SaveForm({ formProps, ...modalProps }: SaveFormProps) {
140140
const data = {
141141
name: value,
142142
orgId,
143-
vizType,
143+
vizType: vizType === 'TEMPLATE' ? 'FOLDER' : vizType,
144144
parentId: parentId || null,
145145
};
146146
return fetchCheckName('viz', data);

0 commit comments

Comments
 (0)