mirror of
https://github.com/ecomfe/vue-echarts.git
synced 2025-10-26 10:25:38 +08:00
fix: remove unnecessary condition
This commit is contained in:
@ -121,7 +121,7 @@ export function useSlotOption(slots: Slots, onSlotsChange: () => void) {
|
||||
// Traverse to the parent of the leaf, cloning or creating along the way
|
||||
let cur: Record<string, unknown> | undefined = root;
|
||||
for (let i = 0; i < path.length - 1; i++) {
|
||||
cur = cur && ensureChild(cur, path[i]);
|
||||
cur = ensureChild(cur, path[i]);
|
||||
if (!cur) {
|
||||
return; // Blocked by a primitive — skip this key
|
||||
}
|
||||
|
||||
@ -13,6 +13,7 @@ export default mergeConfig(
|
||||
provider: "v8",
|
||||
reporter: ["text", "lcov", "html"],
|
||||
include: ["src/**/*.{ts,tsx,js,jsx,vue}"],
|
||||
exclude: ["src/types.ts"],
|
||||
reportsDirectory: "coverage/browser",
|
||||
},
|
||||
browser: {
|
||||
|
||||
Reference in New Issue
Block a user