Skip to content

Commit

Permalink
fix typo in canRender
Browse files Browse the repository at this point in the history
  • Loading branch information
jonesmac committed Nov 22, 2024
1 parent 33a06cb commit 23df8dc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { PayloadRenderPluginBase } from '@xyo-network/react-payload-plugin'
const validSchemas: Set<string> = 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',
}

Expand Down

0 comments on commit 23df8dc

Please sign in to comment.