Skip to content

Commit

Permalink
QrCode modal fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaamo committed Dec 23, 2024
1 parent e7ea2dc commit 43fe5d2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions front/src/components/label/generator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
<template v-else>Item infos:<br /></template>
<ul>
<li>Name: {{ items[0].name }}</li>
<li>Category: {{ items[0].category.name }}</li>
<li v-if="items[0].category">
Category: {{ items[0].category.name }}
</li>
<li>Description: {{ items[0].description || "none" }}</li>
<li>UUID: {{ items[0].uuid }}</li>
<li>qrCode content: {{ qrCodeUri(items[0]) }}</li>
Expand Down Expand Up @@ -147,7 +149,7 @@ export default {
inputs.push({
qrcode: this.qrCodeUri(cb),
name: cb.name ? cb.name : "Unnamed item :(",
category: cb.category.name ? cb.category.name : "No category",
category: cb.category ? cb.category.name : "No category",
description: this.doSubstitutions(cb),
});
});
Expand Down

0 comments on commit 43fe5d2

Please sign in to comment.