Skip to content

Commit 8197214

Browse files
authored
Merge pull request #1546 from FlowFuse/pre-release-niggles
Pre release niggles
2 parents abf3130 + 3de169c commit 8197214

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

ui/src/layouts/Group.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ export default {
117117
widgetStyles () {
118118
return (widget) => {
119119
const styles = {}
120-
const height = widget.props.height || widget.layout.height
121-
const width = widget.props.width || widget.layout.width
120+
const height = widget.props.height
121+
const width = widget.props.width
122122
styles['grid-row-end'] = `span ${height}`
123123
styles['grid-template-rows'] = `repeat(${height}, minmax(var(--widget-row-height), auto))`
124124
styles['grid-column-end'] = `span min(${this.getWidgetWidth(+width)}, var(--layout-columns))`

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)