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

This commit is contained in:
Cees Bos
2025-03-20 18:27:59 +01:00
parent 50acb9957e
commit e1fdb0069b

View File

@@ -1,5 +1,5 @@
<template>
<template v-for="bookmark in bookmarks">
<template v-for="bookmark in bookmarks" :key="bookmark.name">
<Generic :item="bookmark">
</Generic>
</template>
@@ -23,7 +23,7 @@ export default {
}),
computed: {
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);
}
},