Skip to content

Commit c5a0330

Browse files
authored
Fixed querying 4 times when the executeOnLoad option is true
1 parent eb29661 commit c5a0330

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ldf-client-ui.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,8 +536,10 @@ if (typeof global.process === 'undefined')
536536
break;
537537
case 'executeOnLoad':
538538
this.$executeOnLoad.prop('checked', value).change();
539-
if (value && !initialize)
539+
if (value && !initialize && !this._alreadyExecutedOnLoad) {
540+
this._alreadyExecutedOnLoad = true;
540541
this._startExecution();
542+
}
541543
break;
542544
// Set the list of selectable queries
543545
case 'relevantQueries':

0 commit comments

Comments
 (0)