Skip to content

Commit 5fc2fba

Browse files
committed
add back can be missing
1 parent 6af5002 commit 5fc2fba

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/pages/inbox/sidebar/FloatingActionButtonAndPopover.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,10 @@ function FloatingActionButtonAndPopover({onHideCreateMenu, onShowCreateMenu, ref
151151
[activePolicyID, session?.accountID],
152152
);
153153

154-
const [policyChatsForActivePolicy = getEmptyArray<OnyxTypes.Report>()] = useOnyx(ONYXKEYS.COLLECTION.REPORT, {selector: workspaceChatsSelector}, [activePolicyID, session?.accountID]);
154+
const [policyChatsForActivePolicy = getEmptyArray<OnyxTypes.Report>()] = useOnyx(ONYXKEYS.COLLECTION.REPORT, {canBeMissing: true, selector: workspaceChatsSelector}, [
155+
activePolicyID,
156+
session?.accountID,
157+
]);
155158

156159
const policyChatForActivePolicy = useMemo(() => {
157160
if (isEmptyObject(activePolicy) || !activePolicy?.isPolicyExpenseChatEnabled) {

0 commit comments

Comments
 (0)