Skip to content

Commit b4db455

Browse files
authored
Merge pull request Expensify#90046 from emkhalid/fix/optimistic-expense-search-snapshot
fix: show created expense after FAB submission in Reports
2 parents 4dc409b + af3795a commit b4db455

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/libs/actions/IOU/SearchUpdate.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,12 @@ function getSearchOnyxUpdate({
189189
onyxMethod: Onyx.METHOD.MERGE,
190190
key: `${ONYXKEYS.COLLECTION.SNAPSHOT}${currentSearchQueryJSON.hash}` as const,
191191
value: {
192+
search: {
193+
type: currentSearchQueryJSON.type,
194+
status: currentSearchQueryJSON.status,
195+
hasResults: true,
196+
isLoading: false,
197+
},
192198
data: optimisticSnapshotData,
193199
},
194200
},

0 commit comments

Comments
 (0)