fix: set settings not ready

This commit is contained in:
Stephen Zhou
2024-11-18 13:17:52 +08:00
parent fb053cb172
commit 0eef76bc91
+4 -3
View File
@@ -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) {
@@ -347,6 +344,10 @@ class EntryActions {
])
}
}
if (item.settings && draft.flatMapEntries[item.entries.id]) {
draft.flatMapEntries[item.entries.id].settings = item.settings
}
}
return draft