Use lodash for db & database value getting in AutoRefresh

Co-authored-by: Iris Scholten <ischolten.is@gmail.com>
pull/10616/head
Jared Scheib 2018-04-18 11:57:09 -07:00
parent 5111a35448
commit abda445464
1 changed files with 1 additions and 2 deletions

View File

@ -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:') {