Skip to content

Commit be6fec1

Browse files
committed
chore: remove object check since it's known in ts
The object check is not required since we know for certain that it is a correct object beforehand. We only need to check if it is undefined
1 parent dd17957 commit be6fec1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/bootstrap-vue-3/src/components/BTransition/BTransition.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
<script setup lang="ts">
88
import type {Booleanish, TransitionMode} from '../../types'
9-
import {isPlainObject} from '../../utils'
109
import {computed, toRef} from 'vue'
1110
import {useBooleanish} from '../../composables'
1211
@@ -46,7 +45,7 @@ const fadeProperties = computed(() => {
4645
const baseProperties = computed(() => ({mode: props.mode, css: true, ...fadeProperties.value}))
4746
4847
const computedAttrs = computed(() =>
49-
isPlainObject(props.transProps)
48+
props.transProps !== undefined
5049
? {
5150
// Order matters here since the props.transProps would get overwritten if it came first
5251
// But the goal of props.transProps is to overwrite base properties

0 commit comments

Comments
 (0)