File tree Expand file tree Collapse file tree 1 file changed +8
-12
lines changed
lib/lightning_web/live/workflow_live Expand file tree Collapse file tree 1 file changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -1478,15 +1478,6 @@ defmodule LightningWeb.WorkflowLive.Edit do
1478
1478
|> push_patch ( to: url )
1479
1479
end
1480
1480
1481
- @ impl true
1482
- def handle_event ( "get-initial-state" , _params , socket ) do
1483
- { :noreply ,
1484
- socket
1485
- |> push_event ( "current-workflow-params" , % {
1486
- workflow_params: socket . assigns . workflow_params
1487
- } ) }
1488
- end
1489
-
1490
1481
@ impl true
1491
1482
def handle_event ( "workflow_editor_metrics_report" , params , socket ) do
1492
1483
UiMetrics . log_workflow_editor_metrics (
@@ -1498,7 +1489,13 @@ defmodule LightningWeb.WorkflowLive.Edit do
1498
1489
end
1499
1490
1500
1491
def handle_event ( "get-current-state" , _params , socket ) do
1501
- { :reply , % { workflow_params: socket . assigns . workflow_params } , socket }
1492
+ % { workflow_params: workflow_params , current_user: current_user } =
1493
+ socket . assigns
1494
+
1495
+ { :reply ,
1496
+ % {
1497
+ workflow_params: update_jobs_with_chat_info ( workflow_params , current_user )
1498
+ } , socket }
1502
1499
end
1503
1500
1504
1501
def handle_event (
@@ -2654,8 +2651,7 @@ defmodule LightningWeb.WorkflowLive.Edit do
2654
2651
socket
2655
2652
|> assign (
2656
2653
changeset: changeset ,
2657
- workflow_params:
2658
- update_jobs_with_chat_info ( workflow_params , socket . assigns . current_user )
2654
+ workflow_params: workflow_params
2659
2655
)
2660
2656
end
2661
2657
You can’t perform that action at this time.
0 commit comments