solid-panes
solid-panes copied to clipboard
Dashboard Pane: `label` crashes when the subject is not a NamedNode
Console log
Uncaught (in promise) TypeError: subject.site is not a function
at Object.label (mashlib.js:62753)
at mashlib.js:65309
at Array.filter (<anonymous>)
at _callee6$ (mashlib.js:65308)
at tryCatch (mashlib.js:120589)
at Generator.invoke [as _invoke] (mashlib.js:120815)
at Generator.prototype.<computed> [as next] (mashlib.js:120641)
at asyncGeneratorStep (mashlib.js:64629)
at _next (mashlib.js:64651)
at mashlib.js:64658
eg when subject is https://webschemas.org/SpecialAnnouncement
in the code:
name: 'dashboard',
label: function label(subject) {
if (subject.uri === subject.site().uri) {
return 'Dashboard';
}
eg you expand the URI field in internals pan, then the subject is a literal? In principle could be blane node I guess too.