Fix issue with an ever true value comparison

[MAILPOET-4214]
This commit is contained in:
Sam Najian
2022-05-23 10:40:18 +02:00
committed by Veljko V
parent 68da540abd
commit acb300c08d

View File

@@ -281,7 +281,7 @@ export const controls = {
const { formId } = actionData as Record<string, string>; const { formId } = actionData as Record<string, string>;
let url = select('mailpoet-form-editor').getFormEditorUrl(); let url = select('mailpoet-form-editor').getFormEditorUrl();
url = `${url}${formId}`; url = `${url}${formId}`;
if (window.location !== url) { if (window.location.href !== url) {
window.history.replaceState(null, '', url); window.history.replaceState(null, '', url);
} }
}, },