Skip to content

Commit

Permalink
fix: set settings not ready
Browse files Browse the repository at this point in the history
  • Loading branch information
hyoban committed Nov 18, 2024
1 parent fb053cb commit 0eef76b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions apps/renderer/src/store/entry/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,6 @@ class EntryActions {
state.flatMapEntries[item.entries.id]?.entries || {},
item.entries,
)
if (item.settings) {
draft.flatMapEntries[item.entries.id].settings = item.settings
}

// Is related to feed
if (item.feeds) {
Expand Down Expand Up @@ -347,6 +344,10 @@ class EntryActions {
])
}
}

if (item.settings && draft.flatMapEntries[item.entries.id]) {
draft.flatMapEntries[item.entries.id].settings = item.settings
}
}

return draft
Expand Down

0 comments on commit 0eef76b

Please sign in to comment.