Skip to content

Commit a0810f6

Browse files
committed
change order of item.text null checks
1 parent c9f6717 commit a0810f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/resolvers/jobs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export function getResolver(storyIds, stories, cache: Cache): any {
6060
for (const id of ids) {
6161
const storyItem = await cache.get(`${kind}story:${id}`);
6262

63-
if (!storyItem.text || !skipText) {
63+
if (!skipText || typeof storyItem['text'] === 'undefined' || storyItem['text'] === null) {
6464
stories.push(storyItem);
6565
}
6666
}

0 commit comments

Comments
 (0)