Skip to content

Commit

Permalink
Merge branch 'master' into fix/action-param-value
Browse files Browse the repository at this point in the history
jfmcquade authored Jan 29, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents 6f16674 + d8d53b5 commit f549156
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/shared/components/template/components/base.ts
Original file line number Diff line number Diff line change
@@ -36,7 +36,8 @@ export class TemplateBaseComponent implements ITemplateRowProps {
**/
@Input() set row(row: FlowTypes.TemplateRow) {
this._row = row;
this.rowSignal.set(row);
// take shallow clone to still be able to detect changes if this._row directly modified
this.rowSignal.set({ ...row });
}

/**
@@ -70,6 +71,7 @@ export class TemplateBaseComponent implements ITemplateRowProps {
async setValue(value: any) {
// HACK - provide optimistic update so that data_items interceptor also can access updated row value
this._row.value = value;
this.rowSignal.update((v) => ({ ...v, value }));

const action: FlowTypes.TemplateRowAction = {
action_id: "set_self",

0 comments on commit f549156

Please sign in to comment.