mistercrunch commented on a change in pull request #11274:
URL:
https://github.com/apache/incubator-superset/pull/11274#discussion_r507455947
##########
File path: superset-frontend/src/SqlLab/components/TableElement.jsx
##########
@@ -110,7 +110,7 @@ class TableElement extends React.PureComponent {
/>
);
}
- let latest = Object.entries(table.partitions.latest).map(
+ let latest = Object.entries(table.partitions?.latest || []).map(
Review comment:
This isn't necessary anymore given the issue being addressed in the
backend, but is a tiny bit of defensive programming.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]