File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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))`
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments