Automattic / isolated-block-editor

Repackages Gutenberg's editor playground as a full-featured multi-instance editor that does not require WordPress.
343 stars 50 forks source link

Use optional chaining (?.) for conditional call #148

Closed msurdi closed 2 years ago

msurdi commented 2 years ago

This is just a small tweak to fix the linting error showing in these two lines:

Expected an assignment or function call and instead saw an expression.eslint[no-unused-expressions](https://eslint.org/docs/rules/no-unused-expressions)