Skip to content

Commit 13159d2

Browse files
authored
chore: fix errant 0 in output (#127)
1 parent 31f0734 commit 13159d2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/FullPlayground.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,8 @@ export function ThemedAppView(props: { datastore: DataStore }) {
824824
</div>
825825
)}
826826

827-
{currentItem?.kind &&
827+
{/* NOTE: the kind here is an enum, so 0 will render. */}
828+
{currentItem?.kind !== undefined &&
828829
[DataStoreItemKind.ASSERTIONS, DataStoreItemKind.EXPECTED_RELATIONS].includes(
829830
currentItem.kind,
830831
) && (

0 commit comments

Comments
 (0)