Use lodash for db & database value getting in AutoRefresh
Co-authored-by: Iris Scholten <ischolten.is@gmail.com>pull/10616/head
parent
5111a35448
commit
abda445464
|
@ -101,8 +101,7 @@ const AutoRefresh = ComposedComponent => {
|
|||
// the codebase has not been fully converted to TypeScript, it's not clear where else
|
||||
// it may be used, but this slight modification is intended to allow for the use of
|
||||
// `database` while moving over to `db` for consistency over time
|
||||
let {db} = query
|
||||
db = db || database
|
||||
const db = _.get(query, 'db', database)
|
||||
|
||||
const templatesWithIntervalVals = templates.map(temp => {
|
||||
if (temp.tempVar === ':interval:') {
|
||||
|
|
Loading…
Reference in New Issue