pull/5507/head
Cagatay Civici 2024-04-01 14:58:17 +03:00
commit 54d9aa8cfc
1 changed files with 2 additions and 1 deletions

View File

@ -86,7 +86,8 @@ export default {
return false; return false;
}, },
toValue(value) { toValue(value) {
return this.isObject(value) && value.hasOwnProperty('value') ? value.value : value; // Check for Figma (value-type)
return this.isObject(value) && value.hasOwnProperty('value') && value.hasOwnProperty('type') ? value.value : value;
}, },
toUnit(value, variable = '') { toUnit(value, variable = '') {
const excludedProperties = ['opacity', 'z-index', 'line-height', 'font-weight', 'flex', 'flex-grow', 'flex-shrink', 'order']; const excludedProperties = ['opacity', 'z-index', 'line-height', 'font-weight', 'flex', 'flex-grow', 'flex-shrink', 'order'];