Skip to content

Commit

Permalink
Fix logic bug
Browse files Browse the repository at this point in the history
  • Loading branch information
XInTheDark committed Dec 27, 2024
1 parent 72c9be1 commit 34b63d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/preferences/manageCustomAPIs.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ const EditAPIConfig = ({ customAPIData, setCustomAPIData, url }) => {
values.models = models;
}

setCustomAPIData({ ...customAPIData, [values.url]: values });
// Update data
setCustomAPIData({ ...customAPIData, [values.url]: { ...APIData, ...values } });

await showToast(Toast.Style.Success, "Configuration saved");
pop();
Expand Down

0 comments on commit 34b63d9

Please sign in to comment.