Skip to content

Commit 42a6677

Browse files
committed
chore: fix errant 0 in output
1 parent 31f0734 commit 42a6677

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/FullPlayground.tsx

Lines changed: 3 additions & 2 deletions
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
) && (
@@ -834,7 +835,7 @@ export function ThemedAppView(props: { datastore: DataStore }) {
834835
conductValidation={conductValidation}
835836
developerService={developerService}
836837
/>
837-
)}
838+
)}
838839

839840
{currentItem?.kind === DataStoreItemKind.EXPECTED_RELATIONS &&
840841
previousValidationForDiff === undefined && (

0 commit comments

Comments
 (0)