Skip to content

Commit

Permalink
Fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
ascorbic committed Feb 8, 2021
1 parent 9836c2d commit cb40e9a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/gatsby/src/db/common/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,10 @@ export function objectToDottedField(
Object.keys(obj).forEach(key => {
const value = obj[key]
if (_.isPlainObject(value)) {
const pathResult = objectToDottedField(value, path.concat(key))
const pathResult = objectToDottedField(
value as Record<string, unknown>,
path.concat(key)
)
result = {
...result,
...pathResult,
Expand Down

0 comments on commit cb40e9a

Please sign in to comment.