mirror of
https://github.com/austinried/subtracks.git
synced 2026-03-28 07:12:43 +01:00
fix updating currently active server
This commit is contained in:
@@ -104,6 +104,7 @@ export const createSettingsSlice = (set: SetState<Store>, get: GetState<Store>):
|
|||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if (currentActiveServerId === id && !force) {
|
if (currentActiveServerId === id && !force) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@@ -156,7 +157,7 @@ export const createSettingsSlice = (set: SetState<Store>, get: GetState<Store>):
|
|||||||
)
|
)
|
||||||
|
|
||||||
if (get().settings.activeServer === server.id) {
|
if (get().settings.activeServer === server.id) {
|
||||||
get().setActiveServer(server.id)
|
get().setActiveServer(server.id, true)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user