Skip to content

Commit

Permalink
chore(web): fix layer freezing after feature selection
Browse files Browse the repository at this point in the history
  • Loading branch information
KaWaite committed Nov 15, 2023
1 parent 4ad7bbe commit 0305284
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions web/src/beta/lib/core/Map/Layers/hooks.ts
Expand Up @@ -339,24 +339,7 @@ export default function useHooks({
res.data.value = dataValue;
}

const property = layer?.property;
const rawLayer = compat({
...originalLayer,
...(originalLayer.compat && property
? {
type: originalLayer.type === "group" ? "group" : "item",
extensionId: originalLayer.compat.extensionId,
property: {
default: {
...(originalLayer.compat.property?.default || {}),
...(property.default || {}),
},
},
}
: {}),
...(!originalLayer.compat && property ? { property } : {}),
...res,
});
const rawLayer = compat(res);
if (!rawLayer) return;

if (
Expand Down

0 comments on commit 0305284

Please sign in to comment.