Skip to content

Commit

Permalink
fix(ng-yasgui): renamed isQueryExecuted to runQueryOnChange
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamChelman committed Dec 12, 2023
1 parent 634acff commit 75a2ea9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/ng-yasgui/src/lib/components/yasgui/yasgui.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class YasguiComponent implements OnInit, OnChanges, OnDestroy {
query?: string;

@Input()
isQueryExecuted = false;
runQueryOnChange = false;

@ViewChild('yasgui', { static: true })
yasguiRef!: ElementRef;
Expand Down Expand Up @@ -60,7 +60,7 @@ export class YasguiComponent implements OnInit, OnChanges, OnDestroy {
}
if (this.yasgui.current().yasqe.getValue() !== this.query) {
this.yasgui.current().yasqe.setValue(this.query);
if (this.isQueryExecuted && this.options?.yasqe) {
if (this.runQueryOnChange && this.options?.yasqe) {
this.yasgui.current().yasqe.query({
url: this.options.yasqe.sparql,
reqMethod: 'POST',
Expand Down

0 comments on commit 75a2ea9

Please sign in to comment.