Skip to content

Commit

Permalink
fix: 🐛 Uncaught TypeError: Cannot read properties of undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
dizuncainiao committed May 23, 2023
1 parent 5aadeaf commit 7620830
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default defineComponent({
emit('update:params', {
...props.params,
cdId: val,
depName: state.depListData.find(item => item.id === val).name
depName: state.depListData.find(item => item.id === val)?.name
})
}
Expand Down

0 comments on commit 7620830

Please sign in to comment.