fix: eslint
This commit is contained in:
+1
-1
@@ -87,7 +87,7 @@ export default class SmartQuery extends SmartApollo {
|
||||
})
|
||||
}
|
||||
|
||||
if (this.options.fetchPolicy !== "no-cache") {
|
||||
if (this.options.fetchPolicy !== 'no-cache') {
|
||||
const currentResult = this.maySetLoading()
|
||||
|
||||
if (!currentResult.loading) {
|
||||
|
||||
+7
-4
@@ -4,7 +4,7 @@ import oDebounce from 'throttle-debounce/debounce'
|
||||
export const Globals = {}
|
||||
|
||||
function factory (action) {
|
||||
return (cb, time) => action(time. cb)
|
||||
return (cb, time) => action(time.cb)
|
||||
}
|
||||
|
||||
export const throttle = factory(oThrottle)
|
||||
@@ -22,8 +22,11 @@ export function reapply (options, context) {
|
||||
return options
|
||||
}
|
||||
|
||||
export function omit(obj, properties) {
|
||||
export function omit (obj, properties) {
|
||||
return Object.entries(obj)
|
||||
.filter(([key]) => !properties.includes(key))
|
||||
.reduce((c, [key, val]) => (c[key] = val, c), {})
|
||||
.filter(([key]) => !properties.includes(key))
|
||||
.reduce((c, [key, val]) => {
|
||||
c[key] = val
|
||||
return c
|
||||
}, {})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user