mirror of
https://github.com/austinried/subtracks.git
synced 2026-02-10 06:52: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
|
||||
}
|
||||
|
||||
if (currentActiveServerId === id && !force) {
|
||||
return
|
||||
}
|
||||
@@ -156,7 +157,7 @@ export const createSettingsSlice = (set: SetState<Store>, get: GetState<Store>):
|
||||
)
|
||||
|
||||
if (get().settings.activeServer === server.id) {
|
||||
get().setActiveServer(server.id)
|
||||
get().setActiveServer(server.id, true)
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user