Browse Source

fix(AdvancedTable): slot would show before item properties were available

Kristian Vos 3 years ago
parent
commit
75e981bd8a
1 changed files with 6 additions and 0 deletions
  1. 6 0
      frontend/src/components/AdvancedTable.vue

+ 6 - 0
frontend/src/components/AdvancedTable.vue

@@ -135,6 +135,12 @@
 								<slot
 									:name="`column-${column.name}`"
 									:item="item"
+									v-if="
+										column.properties.every(
+											property =>
+												item[property] !== undefined
+										)
+									"
 								></slot>
 							</td>
 						</tr>