Skip to content

Commit fe2c6f6

Browse files
fix(ui): do not allow model add when no location is provided
1 parent d0fcdbe commit fe2c6f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

invokeai/frontend/web/src/features/modelManagerV2/subpanels/AddModelPanel/InstallModelForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export const InstallModelForm = () => {
7272
</FormControl>
7373
<Button
7474
onClick={handleSubmit(onSubmit)}
75-
isDisabled={!formState.isDirty}
75+
isDisabled={!formState.dirtyFields.location}
7676
isLoading={isLoading}
7777
type="submit"
7878
size="sm"

0 commit comments

Comments
 (0)