Web: Editor: Added parameter check.

This commit is contained in:
Tatiana Lopaeva 2023-03-16 13:52:34 +03:00
parent 892a9bafe7
commit aa483f1eb7

View File

@ -55,7 +55,7 @@ const App = ({ initialLanguage, initialI18nStoreASC, setTheme, ...rest }) => {
}, [rest?.config?.documentType]);
useEffect(() => {
if (rest.error?.errorStatus === 402) {
if (rest?.error?.errorStatus === 402) {
const portalUrl = window.location.origin;
history.pushState({}, null, portalUrl);