[FIX] web_editor: adds missing not null check

closes odoo/odoo#96975

X-original-commit: c2f6be56a09e3dd627922036c6deaa22aa2238dd
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
This commit is contained in:
frc-odoo
2022-07-28 13:21:33 +02:00
parent 4b7b89b040
commit 8821fb0641
@@ -1187,7 +1187,7 @@ function _getMatchedCSSRules(node, cssRules) {
}
for (const [key, value] of Object.entries(processedStyle)) {
if (value.endsWith('important')) {
if (value && value.endsWith('important')) {
processedStyle[key] = value.replace(/\s*!important\s*$/, '');
}
};