Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Fix check if element is null
Browse files Browse the repository at this point in the history
  • Loading branch information
qaiswardag committed Jul 29, 2023
1 parent 6e550ca commit 30cfa95
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/composables/Designer.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ class Designer {
}
#updateStyle(selectedCSS, CSSArray, mutationName) {
const currentCSS = CSSArray.find((CSS) => {
return this.getElement.value.classList.contains(CSS);
if (this.getElement.value !== null) {
return this.getElement.value.classList.contains(CSS);
}
});

// set to 'none' if undefined
Expand Down

0 comments on commit 30cfa95

Please sign in to comment.