Skip to content

Commit 86563fe

Browse files
committed
fix the graphiql interface
1 parent 0b72dd3 commit 86563fe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/tdb-documents-ui/src/utils.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -676,6 +676,7 @@ export function getLinkedDocumentClassName (frame, item) {
676676
*/
677677
export function getRowHeight(data) {
678678
if(Array.isArray(data)) return 1
679+
if(typeof data !== "string") return 1
679680
return data.split(/\r\n|\r|\n/).length
680681
}
681682

0 commit comments

Comments
 (0)