test: fix store test

This commit is contained in:
DIYgod
2024-09-13 00:31:24 +08:00
parent ecd5e77a49
commit 00657e1fd8
+3 -1
View File
@@ -33,7 +33,9 @@ class FeedActions {
}
if (feed.id) {
// Not all API return the owner, so merging is needed here.
feed.owner = feed.owner || state.feeds[feed.id]?.owner
if (state.feeds[feed.id]?.owner && !feed.owner) {
feed.owner = state.feeds[feed.id]?.owner
}
state.feeds[feed.id] = feed
} else {