app: wrap provider data in Map to avoid store (#28765)

This commit is contained in:
Brendan Allan
2026-05-22 12:23:16 +08:00
committed by GitHub
parent 9f06accfb4
commit 1f0390cfbb
18 changed files with 80 additions and 55 deletions
@@ -106,7 +106,7 @@ export function DialogCustomProvider(props: Props) {
form,
t: language.t,
disabledProviders: globalSync.data.config.disabled_providers ?? [],
existingProviderIDs: new Set(globalSync.data.provider.all.map((p) => p.id)),
existingProviderIDs: new Set(globalSync.data.provider.all.keys()),
})
batch(() => {
setForm("err", output.err)