Skip to content

Commit f745547

Browse files
authored
Merge pull request Expensify#77653 from dmkt9/fix/75881
Fix/75881 - Redirected to Workflow page instead of Frequency page after date selection refresh
2 parents c467236 + ab9d20a commit f745547

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pages/workspace/AccessOrNotFoundWrapper.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ function AccessOrNotFoundWrapper({
185185
// This is because the feature state changes several times during the creation of a workspace, while we are waiting for a response from the backend.
186186
// Without this, we can be unexpectedly navigated to the More Features page.
187187
useEffect(() => {
188-
if (!isFocused || isFeatureEnabled || (pendingField && !isOffline && !isFeatureEnabled) || shouldShowNotFoundPage) {
188+
if (!isFocused || isEmptyObject(policy) || isFeatureEnabled || (pendingField && !isOffline && !isFeatureEnabled) || shouldShowNotFoundPage) {
189189
return;
190190
}
191191

0 commit comments

Comments
 (0)