From c9ff033d28e6e78e372cf2fdc425598cb044a267 Mon Sep 17 00:00:00 2001 From: Ana Margarida Silva Date: Fri, 29 Sep 2023 15:39:26 +0100 Subject: [PATCH] revert: check removal --- src/libs/actions/IOU.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/libs/actions/IOU.js b/src/libs/actions/IOU.js index 28d68f68261b..ff0b412a7096 100644 --- a/src/libs/actions/IOU.js +++ b/src/libs/actions/IOU.js @@ -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 = '';