From 0be613d04ae384eb307ef2a04ed4a02d6fb0ec76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Agust=C3=ADn=20Busso?= <90727999+agustinbusso@users.noreply.github.com> Date: Thu, 18 Jul 2024 11:10:36 -0300 Subject: [PATCH 1/2] Add nonce to use last endpoint call. Fix issue with cacheEnabled --- src/DataProvider.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/DataProvider.js b/src/DataProvider.js index 61ef5fb1b..dfbefe9b7 100644 --- a/src/DataProvider.js +++ b/src/DataProvider.js @@ -193,7 +193,7 @@ export default { * @param {object} params * @returns {object} */ - getDataSource(dataSourceId, params) { + getDataSource(dataSourceId, params, nonce = null) { // keep backwards compatibility if ( !window.ProcessMaker.screen.cacheEnabled && @@ -210,7 +210,7 @@ export default { pmds_data: JSON.stringify(params.data) } }).then((response) => { - return response; + return [response, nonce]; }); }, @@ -266,7 +266,7 @@ export default { }, getCollectionRecords(collectionId, options, nonce = null) { - options.useCache = window.ProcessMaker.screen.cacheEnabled; + options.useCache = window.ProcessMaker?.screen?.cacheEnabled; return this.get( `/collections/${collectionId}/records${this.authQueryString()}`, From 199fd15c2908e1fc4a1d5601630e79260d4715e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Agust=C3=ADn=20Busso?= <90727999+agustinbusso@users.noreply.github.com> Date: Thu, 18 Jul 2024 11:10:43 -0300 Subject: [PATCH 2/2] Fix search type for PMQL --- src/components/inspector/options-list.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/inspector/options-list.vue b/src/components/inspector/options-list.vue index 0ec21049c..bc10a60c6 100644 --- a/src/components/inspector/options-list.vue +++ b/src/components/inspector/options-list.vue @@ -227,7 +227,7 @@