Skip to content

Commit

Permalink
fix: recreate no feature component when data url is changed on reeart…
Browse files Browse the repository at this point in the history
…h/core (#494)
  • Loading branch information
keiya01 committed Feb 28, 2023
1 parent 6648be0 commit 93c8051
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/engines/Cesium/Feature/index.tsx
Expand Up @@ -86,7 +86,7 @@ export default function Feature({
return (
<C
{...props}
key={`${layer?.id || ""}_${k}`}
key={`${layer?.id || ""}_${k}_${data?.url}`}
id={`${layer.id}_${k}`}
property={pickProperty(k, layer) || layer[k]}
layer={layer}
Expand Down

0 comments on commit 93c8051

Please sign in to comment.