mirror of https://github.com/bastienwirtz/homer
Fix issues in Linkding integration revealed by code check in the pipeline
parent
50acb9957e
commit
e1fdb0069b
|
@ -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);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue