hotfix: customUrl effect is preventing redirects, add check (#13742)

This commit is contained in:
Josh 2020-11-20 14:02:11 -08:00 committed by GitHub
parent 791fb17437
commit ed82bf70f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ export function ClusterProvider({ children }: ClusterProviderProps) {
// Remove customUrl param if dev setting is disabled
React.useEffect(() => {
if (!enableCustomUrl) {
if (!enableCustomUrl && query.has("customUrl")) {
query.delete("customUrl");
history.push({ ...location, search: query.toString() });
}