Swap history.push for history.replace to alleviate console warning dealing with pushing to the same path.

This commit is contained in:
mabashian
2020-01-30 12:37:17 -05:00
parent 877e630a90
commit 7576ba2ade

View File

@@ -88,7 +88,7 @@ function NodeModal({ askLinkType, i18n, onSave, title }) {
param param
) )
); );
history.push(`${history.location.pathname}?${otherParts.join('&')}`); history.replace(`${history.location.pathname}?${otherParts.join('&')}`);
}; };
const handleSaveNode = () => { const handleSaveNode = () => {