Resize image dataviewJS

well, on the basis of

I fiddled around:

```dataviewjs
let groups = dv.pages("[[]]")
	.groupBy(p => p.objekttype)

function ifimage(image) {
  if (image)
    return dv.fileLink(k.image.path, true, 50)
  else
    return ""
}

for (let group of groups.sort(g => g.key, 'asc')) {

    dv.header(2, group.key);
    dv.table(
		["Datei", "image"],
        group.rows
            .sort(k => k.objekttype, 'asc')
            .map(k => [k.file.link, ifimage(k.image)]))
}

```

but DVJS mocks about the path:

Evaluation Error: TypeError: Cannot read properties of undefined (reading 'path')...```

too bad, would have been too easy... :slightly_smiling_face:
or where is my error of reasoning here?
1 Like