Open tris-ots opened 1 month ago
Thanks for the report. Reproduced with two string nodes. Error happened when performing the same action (select map card) on the second string node.
trace:
Error: The argument passed when initializing an observable array must be an array, or null, or undefined.
at a.Ia (knockout-latest.js:48:381)
at viewModel (map.js:97:30)
at viewModel (map-editor.js:241:27)
at new viewModel (map.js:143:24)
at Object.eval [as createViewModel] (knockout-latest.js:92:380)
at c (knockout-latest.js:98:333)
at eval (knockout-latest.js:99:294)
at eval (knockout-latest.js:91:377)
at b (knockout-latest.js:38:98)
at MutationObserver.c (knockout-latest.js:38:136)
Does not appear to be a duplicate of #10401 or #10413
I suspect we don't clear the configs when switching between components. When the card is switched the configs used in the first card are passed to the second and can gum things up depending on the params of the card. This is at least true for reports.
I've found an issue where changing the card type to one which the node doesn't support, such as map cards for a string or date datatype, results in a persistently garbled or corrupted user interface. This issue was discovered in Arches 7.5.2b0 with the CIDOC 6.2 ontology loaded, and seems to be more common with Resource Models that have more than a couple of nodes. In most cases, the card type choice widget is not affected, and I was able to change the card type back to
Default
or another appropriate value and this fixed the issue, but if I didn't change the card type, the interface remained corrupted even after I rebooted the server.This is a fairly minor issue, basically a problem of missing guardrails to prevent the user from making an incorrect choice.
Steps to reproduce:
Cards
tab and choose a card that does not contain ageojson-feature-collection
node.Card Type
toRelated Resources Map Card
orMap Card
.