Skip to content

Commit

Permalink
revert: check removal
Browse files Browse the repository at this point in the history
  • Loading branch information
BeeMargarida committed Sep 29, 2023
1 parent 7e1956f commit c9ff033
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/libs/actions/IOU.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,14 @@ let allPolicyTags = {};
Onyx.connect({
key: ONYXKEYS.COLLECTION.POLICY_TAGS,
waitForCollectionCallback: true,
callback: (value) => (allPolicyTags = value),
callback: (value) => {
if (!value) {
allPolicyTags = {};
return;
}

allPolicyTags = value;
},
});

let userAccountID = '';
Expand Down

0 comments on commit c9ff033

Please sign in to comment.