We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent abf3130 commit 14da347Copy full SHA for 14da347
1 file changed
ui/src/widgets/ui-table/UITable.vue
@@ -193,7 +193,7 @@ export default {
193
calculatePaginatedRows () {
194
if (this.itemsPerPage > 0) {
195
this.pagination.pages = Math.ceil(this.localData?.length / this.props.maxrows)
196
- this.pagination.rows = this.localData.slice(
+ this.pagination.rows = (this.localData || []).slice(
197
(this.pagination.page - 1) * this.props.maxrows,
198
(this.pagination.page) * this.props.maxrows
199
)
0 commit comments