Skip to content

Commit 3e035da

Browse files
committed
6871: Fixed inconsistencies
1 parent bd00ea4 commit 3e035da

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

assets/admin/components/screen/screen-manager.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function ScreenManager({
7777
if (loadingError) {
7878
displayError(t("error-messages.load-screen-error", { id }), loadingError);
7979
}
80-
}, [loadingError]);
80+
}, [loadingError, id]);
8181

8282
/**
8383
* Set state on change in input field
@@ -257,7 +257,7 @@ function ScreenManager({
257257
}
258258
};
259259

260-
const handleSubmitWithRedirect = () => {
260+
const handleSaveAndStay = () => {
261261
saveWithoutCloseRef.current = true;
262262
handleSubmit();
263263
};
@@ -284,7 +284,7 @@ function ScreenManager({
284284
<>
285285
{formStateObject && (
286286
<ScreenForm
287-
handleSubmitWithoutRedirect={handleSubmitWithRedirect}
287+
handleSubmitWithoutRedirect={handleSaveAndStay}
288288
screen={formStateObject}
289289
orientationOptions={orientationOptions}
290290
resolutionOptions={resolutionOptions}

0 commit comments

Comments
 (0)