🐛 Fix editor crash for multiple layers (#127891)

This commit is contained in:
Marco Liberati 2022-03-17 10:48:15 +01:00 committed by GitHub
parent e5c4bef033
commit b47ee8bc1c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -75,7 +75,7 @@ export const getRotatingNumberVisualization = ({
},
getSuggestions: ({ state, table }) => {
if (table.columns.length > 1) {
if (!table.columns.length || table.columns.length > 1) {
return [];
}
if (state && table.changeType === 'unchanged') {