chore: prefer nullish coalescing (#7125)
This commit is contained in:
+2
-2
@@ -1,4 +1,4 @@
|
||||
import { isDef, createNamespace } from '../utils';
|
||||
import { createNamespace } from '../utils';
|
||||
import { ChildrenMixin } from '../mixins/relation';
|
||||
import { routeProps } from '../utils/router';
|
||||
|
||||
@@ -26,7 +26,7 @@ export default createComponent({
|
||||
|
||||
computed: {
|
||||
computedName() {
|
||||
return isDef(this.name) ? this.name : this.index;
|
||||
return this.name ?? this.index;
|
||||
},
|
||||
|
||||
isActive() {
|
||||
|
||||
Reference in New Issue
Block a user