Skip to content

Commit

Permalink
Merge pull request #1 from reearth/fix/override_resource_on_classic
Browse files Browse the repository at this point in the history
fix(web): resource layer doesn’t update properly
  • Loading branch information
airslice authored Jul 8, 2024
2 parents 1548e2d + 0dd4e6c commit fec4acf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const Resource: React.FC<Props> = ({ layer }) => {

if (!isVisible || !Component || !url) return null;

return <Component data={url} clampToGround={clampToGround} />;
return <Component key={url} data={url} clampToGround={clampToGround} />;
};

export default Resource;

0 comments on commit fec4acf

Please sign in to comment.