|
|
@@ -137,6 +137,9 @@ module.exports.modifyClusteringData = async function ({datasets, data, params, o
|
|
|
}).filter(val => val !== null);
|
|
|
});
|
|
|
//console.log(modifiedData);
|
|
|
+ if (modifiedData[0].length <= 1) {
|
|
|
+ throw new Error('All datasets turned off. No data to create clusters.');
|
|
|
+ }
|
|
|
return new Promise((resolve, reject) => {
|
|
|
stringify(modifiedData, (err, output) => {
|
|
|
if (err) return reject(err);
|