refactor: remove null comparisons
This commit is contained in:
@@ -14,7 +14,7 @@ export function patchDOMProp(
|
||||
parentSuspense: any,
|
||||
unmountChildren: any
|
||||
) {
|
||||
if ((key === 'innerHTML' || key === 'textContent') && prevChildren != null) {
|
||||
if ((key === 'innerHTML' || key === 'textContent') && prevChildren) {
|
||||
unmountChildren(prevChildren, parentComponent, parentSuspense)
|
||||
el[key] = value == null ? '' : value
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user