mirror of
https://github.com/element-plus/element-plus.git
synced 2024-12-27 03:01:14 +08:00
fix(cascader): prevent log error for before filter (#1582)
This commit is contained in:
parent
272b8c76c8
commit
872327a7d5
@ -504,6 +504,7 @@ export default defineComponent({
|
||||
|
||||
if (isPromise(passed)) {
|
||||
passed.then(calculateSuggestions)
|
||||
.catch(() => { /* prevent log error */ })
|
||||
} else if (passed !== false) {
|
||||
calculateSuggestions()
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user