Skip to content

Commit 8eb7215

Browse files
committed
fix: handle undefined edges
1 parent 7d1cd53 commit 8eb7215

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"@semantic-release/changelog": "^5.0.1",
4545
"@semantic-release/exec": "^5.0.0",
4646
"@semantic-release/git": "^9.0.0",
47-
"@types/node": "^18.14.0",
47+
"@types/node": "^20.19.3",
4848
"@typescript-eslint/eslint-plugin": "^6.15.0",
4949
"@typescript-eslint/parser": "^6.15.0",
5050
"eslint": "^8.56.0",

packages/components-vue/src/components/pagination/Content.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@
177177
});
178178
179179
function isContent(c?: iPage<T, C>): boolean {
180-
const hasContent = !!c?.edges.length;
180+
const hasContent = !!c?.edges?.length;
181181
182182
emit("hasContent", hasContent);
183183

yarn.lock

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3766,12 +3766,12 @@
37663766
dependencies:
37673767
undici-types "~6.20.0"
37683768

3769-
"@types/node@^18.14.0":
3770-
version "18.19.84"
3771-
resolved "https://registry.yarnpkg.com/@types/node/-/node-18.19.84.tgz#29a1c36a9241a76351397993635f5b5fdbc2504c"
3772-
integrity sha512-ACYy2HGcZPHxEeWTqowTF7dhXN+JU1o7Gr4b41klnn6pj2LD6rsiGqSZojMdk1Jh2ys3m76ap+ae1vvE4+5+vg==
3769+
"@types/node@^20.19.3":
3770+
version "20.19.7"
3771+
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.19.7.tgz#1d3656e25ec91731c1cce21889e4754ebc988b4e"
3772+
integrity sha512-1GM9z6BJOv86qkPvzh2i6VW5+VVrXxCLknfmTkWEqz+6DqosiY28XUWCTmBcJ0ACzKqx/iwdIREfo1fwExIlkA==
37733773
dependencies:
3774-
undici-types "~5.26.4"
3774+
undici-types "~6.21.0"
37753775

37763776
"@types/normalize-package-data@^2.4.0", "@types/normalize-package-data@^2.4.3":
37773777
version "2.4.4"
@@ -16602,16 +16602,16 @@ unctx@^2.4.1:
1660216602
magic-string "^0.30.17"
1660316603
unplugin "^2.1.0"
1660416604

16605-
undici-types@~5.26.4:
16606-
version "5.26.5"
16607-
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617"
16608-
integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==
16609-
1661016605
undici-types@~6.20.0:
1661116606
version "6.20.0"
1661216607
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.20.0.tgz#8171bf22c1f588d1554d55bf204bc624af388433"
1661316608
integrity sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==
1661416609

16610+
undici-types@~6.21.0:
16611+
version "6.21.0"
16612+
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.21.0.tgz#691d00af3909be93a7faa13be61b3a5b50ef12cb"
16613+
integrity sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==
16614+
1661516615
undici@^6.19.5:
1661616616
version "6.21.2"
1661716617
resolved "https://registry.yarnpkg.com/undici/-/undici-6.21.2.tgz#49c5884e8f9039c65a89ee9018ef3c8e2f1f4928"

0 commit comments

Comments
 (0)