Skip to content

Commit 6da8353

Browse files
committed
fix: add search metadata to optimistic expense snapshot
1 parent 6832ae4 commit 6da8353

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/libs/actions/IOU/index.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,6 +1010,14 @@ function getSearchOnyxUpdate({
10101010
onyxMethod: Onyx.METHOD.MERGE,
10111011
key: `${ONYXKEYS.COLLECTION.SNAPSHOT}${currentSearchQueryJSON.hash}` as const,
10121012
value: {
1013+
search: {
1014+
type: currentSearchQueryJSON.type,
1015+
status: currentSearchQueryJSON.status,
1016+
offset: 0,
1017+
hasMoreResults: false,
1018+
hasResults: true,
1019+
isLoading: false,
1020+
},
10131021
data: optimisticSnapshotData,
10141022
},
10151023
},

0 commit comments

Comments
 (0)