Skip to content

Commit b4cf549

Browse files
psychedelicioushipsterusername
authored andcommitted
fix(ui): handle model names with spaces
Remove `trim()` from model identifier schema, which prevented parsed model identifiers from matching. The root issue here is that model names are identifiers. This will be resolved in the model manager refactor. Closes #5556
1 parent a0e6870 commit b4cf549

File tree

1 file changed

+1
-1
lines changed
  • invokeai/frontend/web/src/features/nodes/types

1 file changed

+1
-1
lines changed

invokeai/frontend/web/src/features/nodes/types/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export const zModelType = z.enum([
6565
'controlnet',
6666
'embedding',
6767
]);
68-
export const zModelName = z.string().trim().min(1);
68+
export const zModelName = z.string().min(3);
6969
export const zModelIdentifier = z.object({
7070
model_name: zModelName,
7171
base_model: zBaseModel,

0 commit comments

Comments
 (0)