diff --git a/client/web/compose/src/components/PageBlocks/RecordListBase.vue b/client/web/compose/src/components/PageBlocks/RecordListBase.vue index 631c21980..6d84e5896 100644 --- a/client/web/compose/src/components/PageBlocks/RecordListBase.vue +++ b/client/web/compose/src/components/PageBlocks/RecordListBase.vue @@ -1034,7 +1034,7 @@ export default { created () { if (!this.inlineEditing) { - this.refreshBlock(this.refresh) + this.refreshBlock(this.refresh, false, true) } }, @@ -1486,7 +1486,7 @@ export default { } }, - refresh (resetPagination = false, checkSelected = true) { + refresh (resetPagination = false, checkSelected = false) { // Prevent refresh if records are selected or inline editing if (checkSelected && (this.selected.length || this.inlineEdit.recordIDs.length)) return diff --git a/client/web/compose/src/components/PageBlocks/base.vue b/client/web/compose/src/components/PageBlocks/base.vue index 660bac89f..0ac58dd8b 100644 --- a/client/web/compose/src/components/PageBlocks/base.vue +++ b/client/web/compose/src/components/PageBlocks/base.vue @@ -101,11 +101,11 @@ export default { * If reloading data does not refresh the page block * You should attach :key="key" to it and increment it in the refreshFunction */ - refreshBlock (refreshFunction) { + refreshBlock (refreshFunction, ...params) { if (!this.autoRefreshEnabled || this.refreshInterval) return const interval = setInterval(() => { - refreshFunction() + refreshFunction(...params) }, this.options.refreshRate * 1000) this.refreshInterval = interval