File tree Expand file tree Collapse file tree
assets/admin/components/screen Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments