From 07c48985e400b7bbd23274827458ceae9388e6db Mon Sep 17 00:00:00 2001 From: filipriec Date: Mon, 31 Mar 2025 16:25:11 +0200 Subject: [PATCH] proper pass of the arguments --- client/src/modes/canvas/common.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/modes/canvas/common.rs b/client/src/modes/canvas/common.rs index 92379c4..1ed4226 100644 --- a/client/src/modes/canvas/common.rs +++ b/client/src/modes/canvas/common.rs @@ -24,7 +24,7 @@ pub async fn handle_core_action( match action { "save" => { if app_state.ui.show_login { - let message = login_save(auth_state, auth_client).await?; + let message = login_save(auth_state, auth_client, app_state).await?; Ok((false, message)) } else { let message = form_save( @@ -58,7 +58,7 @@ pub async fn handle_core_action( }, "revert" => { if app_state.ui.show_login { - let message = cancel(auth_state).await; + let message = cancel(auth_state, app_state).await; Ok((false, message)) } else { let message = revert(