Skip to content

Commit eb8cb52

Browse files
authored
Fix export dialog null (#167)
* add check * 1.11.2
1 parent 1077761 commit eb8cb52

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "query-builder",
3-
"version": "1.11.1",
3+
"version": "1.11.2",
44
"description": "Introduces new user interfaces for building queries in Roam",
55
"main": "./build/main.js",
66
"author": {

src/utils/getExportTypes.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,8 +393,8 @@ const getExportTypes = ({ results, exportId }: Props): ExportTypes => {
393393
)}"] [?r :block/refs ?p] [?r :block/page ?pr]]`
394394
) as [PullBlock, PullBlock][]
395395
).filter(
396-
([, { [":block/children"]: children = [] }]) =>
397-
!!children.length
396+
([, { [":block/children"]: children }]) =>
397+
Array.isArray(children) && children.length
398398
)
399399
: [];
400400
const content = `---\n${yamlLines

0 commit comments

Comments
 (0)