mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-09-13 12:12:59 +02:00
Move common logic into systems view again
- adds backend log if subcluster for node not configured
This commit is contained in:
@@ -22,10 +22,10 @@
|
||||
|
||||
function tile(items, itemsPerRow) {
|
||||
const rows = []
|
||||
for (let ri = 0; ri < items.length; ri += itemsPerRow) {
|
||||
for (let ri = 0; ri < items?.length; ri += itemsPerRow) {
|
||||
const row = []
|
||||
for (let ci = 0; ci < itemsPerRow; ci += 1) {
|
||||
if (ri + ci < items.length)
|
||||
if (ri + ci < items?.length)
|
||||
row.push(items[ri + ci])
|
||||
else
|
||||
row.push({ _is_placeholder: true, ri, ci })
|
||||
|
Reference in New Issue
Block a user