Fix issues in Linkding integration revealed by code check in the pipeline

pull/895/head
Cees Bos 2025-03-20 18:27:59 +01:00
parent 50acb9957e
commit e1fdb0069b
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
<template> <template>
<template v-for="bookmark in bookmarks"> <template v-for="bookmark in bookmarks" :key="bookmark.name">
<Generic :item="bookmark"> <Generic :item="bookmark">
</Generic> </Generic>
</template> </template>
@ -23,7 +23,7 @@ export default {
}), }),
computed: { computed: {
calculatedLimit: function () { calculatedLimit: function () {
let limit = this.item.hasOwnProperty('limit') ? this.item['limit'] : 5; let limit = this.item.limit ? this.item.limit : 5;
return Math.min(Math.max(limit,1),15); return Math.min(Math.max(limit,1),15);
} }
}, },