Skip to content

Commit

Permalink
Fix transformation properties not being set
Browse files Browse the repository at this point in the history
Closes #199.
  • Loading branch information
phschaad committed Oct 4, 2022
1 parent 23da88a commit 9ed4d3c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/webclients/components/sdfv/utils/attributes_table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,7 @@ export async function attributeTablePutEntry(
const valPropUpdateHandler = valueChangeHandlerOverride !== undefined ?
valueChangeHandlerOverride : (prop: Property) => {
const sdfg = VSCodeRenderer.getInstance()?.get_sdfg();
if (!xform && prop.update() && sdfg)
if (prop && prop.update() && !xform && sdfg)
vscodeWriteGraph(sdfg);
};

Expand Down
4 changes: 3 additions & 1 deletion src/webclients/components/transformations/transformations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,13 @@ export class Transformation extends TransformationListItem {
'class': 'transformation-list-quick-apply',
'text': 'Quick Apply',
'title': 'Apply transformation with default parameters',
'click': () => {
'click': (event: Event) => {
event.stopPropagation();
vscode.postMessage({
type: 'sdfv.apply_transformations',
transformations: [this.json],
});
return true;
},
}).appendTo(labelContainer);

Expand Down

0 comments on commit 9ed4d3c

Please sign in to comment.