project-booster-vue 10.24.1 → 10.24.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "project-booster-vue",
3
- "version": "10.24.1",
3
+ "version": "10.24.2",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -197,12 +197,8 @@
197
197
 
198
198
  <div class="pb-project-attributes__section-title">Détails</div>
199
199
 
200
- <div
201
- class="pb-project-attributes__details"
202
- v-for="[attributeId, attribute] of displayedProjectAttributes"
203
- :key="attributeId"
204
- >
205
- <p v-if="attributeId === 'comment'" v-html="attribute.value"></p>
200
+ <div class="pb-project-attributes__details" v-if="getCommentAttribute">
201
+ <p v-html="getCommentAttribute"></p>
206
202
  </div>
207
203
  </m-flexy>
208
204
  </template>
@@ -348,6 +344,13 @@ export default defineComponent({
348
344
  displayedProjectAttributes() {
349
345
  return Object.entries(this.projectAttributes);
350
346
  },
347
+
348
+ getCommentAttribute(): string | null {
349
+ const commentAttribute = Object.entries(this.projectAttributes).find(
350
+ ([attributeId]) => attributeId === 'comment',
351
+ );
352
+ return commentAttribute ? commentAttribute[1].value : null;
353
+ },
351
354
  },
352
355
  });
353
356
  </script>