fix null boolean

This commit is contained in:
keyan 2022-08-11 16:42:52 -05:00
parent ddb4a30c4b
commit 69d0082839
1 changed files with 1 additions and 1 deletions

View File

@ -890,7 +890,7 @@ const createItem = async (parent, { title, url, text, boost, forward, parentId }
} }
} }
const hasImgLink = mdHas(text, ['link', 'image']) const hasImgLink = !!(text && mdHas(text, ['link', 'image']))
const [item] = await serialize(models, const [item] = await serialize(models,
models.$queryRaw( models.$queryRaw(