Skip to content

Commit

Permalink
[field] PT: fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
skogsmaskin authored and rexxars committed Oct 6, 2020
1 parent 4e2adce commit cbc000d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@sanity/field/src/types/portableText/diff/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,6 @@ export function findAnnotationDiff(diff: ObjectDiff, markDefKey: string): Object
)
}

export function isEmptyObject(object: PortableTextChild) {
return object && isEqual(Object.keys(object), ['_key', '_type'])
export function isEmptyObject(object: PortableTextChild): boolean {
return (object && isEqual(Object.keys(object), ['_key', '_type'])) || false
}

0 comments on commit cbc000d

Please sign in to comment.