fix shadow reverting to object mode if deserialization fails

This commit is contained in:
Henry Jameson 2024-10-30 22:12:30 +02:00
parent 30206d20a7
commit ec1f069515

View file

@ -391,6 +391,7 @@ export default {
return deserializeShadow(shadow)
} catch (e) {
console.warn(e)
return shadow
}
}
return null
@ -703,7 +704,6 @@ export default {
if (selectedState.size > 0) {
selectedState.forEach(state => {
const original = selectedComponent.value.states[state]
console.log('ORIG', original)
selectors.push(simulatePseudoSelectors(original))
})
}