mirror of
https://github.com/bastienwirtz/homer.git
synced 2025-12-16 05:09:50 +01:00
Fix issues in Linkding integration revealed by code check in the pipeline
This commit is contained in:
@@ -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);
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user