From c5ea26a625f25451c13d4029d121d6fce0e3df63 Mon Sep 17 00:00:00 2001 From: Etienne Burdet Date: Tue, 10 Dec 2024 11:21:07 +0100 Subject: [PATCH] fix: fix stories with new accessor value --- packages/visualizations-react/stories/Table/options.ts | 5 ----- .../visualizations/src/components/Format/GeoFormat.svelte | 6 +++++- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/packages/visualizations-react/stories/Table/options.ts b/packages/visualizations-react/stories/Table/options.ts index bc859d26..0f6e2ec9 100644 --- a/packages/visualizations-react/stories/Table/options.ts +++ b/packages/visualizations-react/stories/Table/options.ts @@ -131,11 +131,6 @@ export const columns: Column[] = [ r?.geopoint && `longitude: ${r.geopoint[0]}, latitude: ${r.geopoint[1]}`, }), }, - { - title: 'RĂ©gion', - key: 'region', - dataFormat: 'short-text', - }, { title: 'Geo shapes', key: 'geoshape', diff --git a/packages/visualizations/src/components/Format/GeoFormat.svelte b/packages/visualizations/src/components/Format/GeoFormat.svelte index 049065f0..ec1ed1b3 100644 --- a/packages/visualizations/src/components/Format/GeoFormat.svelte +++ b/packages/visualizations/src/components/Format/GeoFormat.svelte @@ -13,6 +13,8 @@ let tooltipContent: Content; let showMap = false; + + $: console.log(value);
-
{valueToLabel && valueToLabel(value)}
+ {#if valueToLabel && valueToLabel(value)} +
{valueToLabel(value)}
+ {/if} {#if showMap && value && mapOptions}