Skip to content

Commit

Permalink
fix: ? instead of undefined
Browse files Browse the repository at this point in the history
Co-authored-by: Sehi L'Yi <[email protected]>
  • Loading branch information
etowahadams and sehilyi authored Jan 10, 2024
1 parent 4211b24 commit fb56bca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/gosling-component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ export const GoslingComponent = forwardRef<GoslingRef, GoslingCompProps>((props,

// TODO: add a `force` parameter since changing `linkingId` might not update vis
const compile = useCallback(
(spec: gosling.GoslingSpec | undefined) => {
(altSpec?: gosling.GoslingSpec) => {
const spec = altSpec ?? props.spec;
if (spec) {
const valid = gosling.validateGoslingSpec(spec);

Expand Down

0 comments on commit fb56bca

Please sign in to comment.