From 7576ba2adeaa4817449bb4e54f69ad2549945a7b Mon Sep 17 00:00:00 2001 From: mabashian Date: Thu, 30 Jan 2020 12:37:17 -0500 Subject: [PATCH] Swap history.push for history.replace to alleviate console warning dealing with pushing to the same path. --- .../Modals/NodeModals/NodeModal.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/ui_next/src/screens/Template/WorkflowJobTemplateVisualizer/Modals/NodeModals/NodeModal.jsx b/awx/ui_next/src/screens/Template/WorkflowJobTemplateVisualizer/Modals/NodeModals/NodeModal.jsx index abde0f548f..15c05abbbe 100644 --- a/awx/ui_next/src/screens/Template/WorkflowJobTemplateVisualizer/Modals/NodeModals/NodeModal.jsx +++ b/awx/ui_next/src/screens/Template/WorkflowJobTemplateVisualizer/Modals/NodeModals/NodeModal.jsx @@ -88,7 +88,7 @@ function NodeModal({ askLinkType, i18n, onSave, title }) { param ) ); - history.push(`${history.location.pathname}?${otherParts.join('&')}`); + history.replace(`${history.location.pathname}?${otherParts.join('&')}`); }; const handleSaveNode = () => {