Skip to content

Commit 4ef1aaa

Browse files
committed
refactor(Dashboard): split long expression for readability in workflow details view
Signed-off-by: Jean-Baptiste Bianchi <[email protected]>
1 parent 1d6c38b commit 4ef1aaa

File tree

1 file changed

+5
-1
lines changed
  • src/dashboard/Synapse.Dashboard/Pages/Workflows/Details

1 file changed

+5
-1
lines changed

src/dashboard/Synapse.Dashboard/Pages/Workflows/Details/View.razor

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@
4343
OnSuspend="async (instance) => await Store.SuspendInstanceAsync(instance)"
4444
OnResume="async (instance) => await Store.ResumeInstanceAsync(instance)"
4545
OnCancel="async (instance) => await Store.CancelInstanceAsync(instance)"
46-
OnReplay="async (instance) => await Store.OnShowCreateInstanceAsync(workflowDefinition, operators ?? [], instance.Spec?.Input, instance.Metadata.Labels?.Get(SynapseDefaults.Resources.Labels.Operator) ?? operatorName)"
46+
OnReplay="async (instance) => await Store.OnShowCreateInstanceAsync(
47+
workflowDefinition, operators ?? [],
48+
instance.Spec?.Input,
49+
instance.Metadata.Labels?.Get(SynapseDefaults.Resources.Labels.Operator) ?? operatorName
50+
)"
4751
OnDelete="OnDeleteWorkflowInstanceAsync"
4852
OnToggleSelected="Store.ToggleResourceSelection"
4953
OnSuspendSelected="async () => await Store.OnSuspendSelectedInstancesAsync()"

0 commit comments

Comments
 (0)