mirror of
https://github.com/open-webui/open-webui
synced 2025-06-23 02:16:52 +00:00
refac
This commit is contained in:
parent
86551de1f7
commit
b0da2c998b
@ -34,11 +34,6 @@
|
||||
pinnedModels = [...new Set([...pinnedModels, modelId])];
|
||||
}
|
||||
|
||||
if (pinnedModels.length > 5) {
|
||||
toast.error($i18n.t('You can only pin up to 5 models.'));
|
||||
return;
|
||||
}
|
||||
|
||||
settings.set({ ...$settings, pinnedModels: pinnedModels });
|
||||
await updateUserSettings(localStorage.token, { ui: $settings });
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user