Fix metrics data not being consistent when configurator is updated

This commit is contained in:
Kelani Tolulope
2023-05-18 11:46:22 +01:00
parent dc4864927c
commit dd023ed8b4
@@ -41,6 +41,7 @@
import base from './base'
import numeral from 'numeral'
import moment from 'moment'
import { debounce } from 'lodash'
import MetricItem from './Metric/Item'
import { NoID, compose } from '@cortezaproject/corteza-js'
import { evaluatePrefilter } from 'corteza-webapp-compose/src/lib/record-filter'
@@ -75,6 +76,13 @@ export default {
this.refresh()
},
},
options: {
deep: true,
handler: debounce(function () {
this.refresh()
}, 300),
},
},
mounted () {