From 23df8dc7c43bc430ecc31773c2b0d942e396e02b Mon Sep 17 00:00:00 2001 From: Matt Jones <885417+jonesmac@users.noreply.github.com> Date: Fri, 22 Nov 2024 16:41:56 -0500 Subject: [PATCH] fix typo in canRender --- packages/plugins/packages/location-point-map/src/meta/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugins/packages/location-point-map/src/meta/index.ts b/packages/plugins/packages/location-point-map/src/meta/index.ts index 25aec4777..2de910afd 100644 --- a/packages/plugins/packages/location-point-map/src/meta/index.ts +++ b/packages/plugins/packages/location-point-map/src/meta/index.ts @@ -5,7 +5,7 @@ import type { PayloadRenderPluginBase } from '@xyo-network/react-payload-plugin' const validSchemas: Set = new Set([LocationSchema, GeographicCoordinateSystemLocationSchema]) const PointMapRenderPluginMeta: PayloadRenderPluginBase = { - canRender: (payload?: Payload) => !(payload && validSchemas.has(payload.schema)), + canRender: (payload?: Payload) => !!(payload && validSchemas.has(payload.schema)), name: 'Point Map', }