Skip to content

Commit bf8d5ab

Browse files
authored
add check for cluster length when navigating user to domain (#427)
1 parent 0da1b89 commit bf8d5ab

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

client/containers/domain-autocomplete/actions.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,10 @@ const actions = {
118118
);
119119

120120
if (
121-
value.isGlobalDomain ||
122121
!allowedCrossOrigin ||
123-
!value.replicationConfiguration
122+
!value.replicationConfiguration ||
123+
(value.isGlobalDomain &&
124+
value.replicationConfiguration.clusters.length > 1)
124125
) {
125126
return dispatchToGlobalRoute();
126127
}

0 commit comments

Comments
 (0)