Fix dashboard replicant saves

This commit is contained in:
Pandipipas
2026-02-08 17:10:27 +01:00
parent 5dbb80aa0c
commit aa6c9acf1c
2 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -66,7 +66,8 @@ const writeStorage = (value: PlayersMap) => {
export const usePlayersStore = defineStore('players', () => {
const players = ref<PlayersMap>({});
const replicantRef = playersReplicant?.data as unknown as Ref<PlayersMap | undefined> | undefined;
const replicant = playersReplicant;
const replicantRef = replicant?.data as unknown as Ref<PlayersMap | undefined> | undefined;
const storageSnapshot = readStorage();
if (storageSnapshot) {
players.value = storageSnapshot;
@@ -96,6 +97,7 @@ export const usePlayersStore = defineStore('players', () => {
return;
}
replicantRef.value = normalizePlayers(value);
replicant?.save();
},
{ deep: true }
);