optional chaining
This commit is contained in:
parent
59f3ca65ca
commit
cf85b00c0a
26 changed files with 34 additions and 34 deletions
|
|
@ -47,7 +47,7 @@ export default {
|
|||
// In case of controlled component
|
||||
if (this.activeTab) {
|
||||
return this.slots().findIndex(
|
||||
(slot) => slot && slot.props && this.activeTab === slot.props.key,
|
||||
(slot) => slot?.props && this.activeTab === slot.props.key,
|
||||
)
|
||||
} else {
|
||||
return this.active
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue