We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d79b882 + c2db86d commit d1a627eCopy full SHA for d1a627e
src/components/FormSelectList.vue
@@ -90,6 +90,7 @@
90
],
91
data() {
92
return {
93
+ lastRequest: {},
94
apiClient: window.ProcessMaker.apiClient.create(),
95
selectListOptions: [],
96
doDebounce: _.debounce(options => {
@@ -108,6 +109,13 @@
108
109
dataSourceUrl += '?pmql=' + encodeURIComponent(pmql);
110
}
111
112
+ // Do not re-run the same request
113
+ const request = { dataSourceUrl, selectedEndPoint };
114
+ if (_.isEqual(this.lastRequest, request)) {
115
+ return;
116
+ }
117
+ this.lastRequest = _.cloneDeep(request);
118
+
119
this.apiClient
120
.post(dataSourceUrl, { config: { endpoint: selectedEndPoint, } })
121
.then(response => {
0 commit comments