mirror of
https://github.com/element-plus/element-plus.git
synced 2025-01-12 10:45:10 +08:00
Table: fix Destructuring assignment bug (#2893)
This commit is contained in:
parent
fdbbd15187
commit
c1445d80de
@ -22,11 +22,11 @@ function useCurrent<T>(watcherData: WatcherPropsData<T>) {
|
||||
}
|
||||
|
||||
const setCurrentRowByKey = (key: string) => {
|
||||
const { data = [], rowKey } = watcherData
|
||||
const { data, rowKey } = watcherData
|
||||
let _currentRow = null
|
||||
if (rowKey.value) {
|
||||
_currentRow = arrayFind(
|
||||
unref(data),
|
||||
unref(data) || [],
|
||||
item => getRowIdentity(item, rowKey.value) === key,
|
||||
)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user