Skip to content

Commit 14da347

Browse files
committed
prevent exceptions rendering empty table
1 parent abf3130 commit 14da347

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ui/src/widgets/ui-table/UITable.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ export default {
193193
calculatePaginatedRows () {
194194
if (this.itemsPerPage > 0) {
195195
this.pagination.pages = Math.ceil(this.localData?.length / this.props.maxrows)
196-
this.pagination.rows = this.localData.slice(
196+
this.pagination.rows = (this.localData || []).slice(
197197
(this.pagination.page - 1) * this.props.maxrows,
198198
(this.pagination.page) * this.props.maxrows
199199
)

0 commit comments

Comments
 (0)