I’m having trouble with a button on a subview. In my application I want to be able to add a row to the subview so I’ve added a button to the subview and when clicked this throws the error message
PerspectiveClient.14b36687810519be6a73.js:12 onerrorLogger:
{"stack":"TypeError: Cannot read properties of undefined (reading 'city')\n at l
(http://10.62.28.119:8088/res/perspective/js/PerspectiveComponents.7956617bb98f27e8729d.js:23:16486)\n
at Object.b [as getCellValue]
I’ve recreated the problem using a simple view using a table with the default data and calling a subview containing another table with the default data. The subview has a “Do nothing” button with no actions attached but the error is thrown if the subview is clicked anywhere outside the table.
Clicking the subview anywhere outside the table triggers the error.
The problem appears to be similar to Table Subview TypeError On Click by @catherine.fowler but this has had no replies.
Can anyone explain the issue and provide a fix?
Full browser debugger error message:
PerspectiveClient.14b36687810519be6a73.js:12 onerrorLogger: {"stack":"TypeError: Cannot read properties of undefined (reading 'city')\n at l (http://10.62.28.119:8088/res/perspective/js/PerspectiveComponents.7956617bb98f27e8729d.js:23:16486)\n at Object.b [as getCellValue] (http://10.62.28.119:8088/res/perspective/js/PerspectiveComponents.7956617bb98f27e8729d.js:23:16536)\n at http://10.62.28.119:8088/res/perspective/js/PerspectiveComponents.7956617bb98f27e8729d.js:82:65970\n at Array.reduce (<anonymous>)\n at L.getAllRowData (http://10.62.28.119:8088/res/perspective/js/PerspectiveComponents.7956617bb98f27e8729d.js:82:65948)\n at L.handleSingleSelection (http://10.62.28.119:8088/res/perspective/js/PerspectiveComponents.7956617bb98f27e8729d.js:82:85859)\n at L.handleBodyClick (http://10.62.28.119:8088/res/perspective/js/PerspectiveComponents.7956617bb98f27e8729d.js:82:81467)\n at Object.Bi (http://10.62.28.119:8088/res/perspective/js/react-dom.production.min-16.11.0.js:175:175)\n at Ai (http://10.62.28.119:8088/res/perspective/js/react-dom.production.min-16.11.0.js:14:96)\n at Di (http://10.62.28.119:8088/res/perspective/js/react-dom.production.min-16.11.0.js:14:150)","message":"Cannot read properties of undefined (reading 'city')","name":"TypeError","logData":{"msg":"Uncaught Exception","errorMsg":"Uncaught TypeError: Cannot read properties of undefined (reading 'city')","url":"http://10.62.28.119:8088/res/perspective/js/react-dom.production.min-16.11.0.js","line number":15,"column":218}}
n.cerror @ PerspectiveClient.14b36687810519be6a73.js:12
n.sendLogItemsConsole @ PerspectiveClient.14b36687810519be6a73.js:12
p.sendBatch @ PerspectiveClient.14b36687810519be6a73.js:12
p.sendBatchIfComplete @ PerspectiveClient.14b36687810519be6a73.js:12
p.log @ PerspectiveClient.14b36687810519be6a73.js:12
e.log @ PerspectiveClient.14b36687810519be6a73.js:12
e.fatalException @ PerspectiveClient.14b36687810519be6a73.js:12
window.onerror.window.onerror @ PerspectiveClient.14b36687810519be6a73.js:12
error (async)
(anonymous) @ PerspectiveClient.14b36687810519be6a73.js:12
o @ PerspectiveClient.14b36687810519be6a73.js:1
(anonymous) @ PerspectiveClient.14b36687810519be6a73.js:1
o @ PerspectiveClient.14b36687810519be6a73.js:1
(anonymous) @ PerspectiveClient.14b36687810519be6a73.js:1
o @ PerspectiveClient.14b36687810519be6a73.js:1
(anonymous) @ PerspectiveClient.14b36687810519be6a73.js:1
(anonymous) @ PerspectiveClient.14b36687810519be6a73.js:1
(anonymous) @ PerspectiveClient.14b36687810519be6a73.js:1
(anonymous) @ PerspectiveClient.14b36687810519be6a73.js:1
react-dom.production.min-16.11.0.js:15 Uncaught TypeError: Cannot read properties of undefined (reading 'city')
at l (PerspectiveComponents.7956617bb98f27e8729d.js:23)
at Object.b [as getCellValue] (PerspectiveComponents.7956617bb98f27e8729d.js:23)
at PerspectiveComponents.7956617bb98f27e8729d.js:82
at Array.reduce (<anonymous>)
at L.getAllRowData (PerspectiveComponents.7956617bb98f27e8729d.js:82)
at L.handleSingleSelection (PerspectiveComponents.7956617bb98f27e8729d.js:82)
at L.handleBodyClick (PerspectiveComponents.7956617bb98f27e8729d.js:82)
at Object.Bi (react-dom.production.min-16.11.0.js:175)
at Ai (react-dom.production.min-16.11.0.js:14)
at Di (react-dom.production.min-16.11.0.js:14)