diff --git a/src/utils/dataByOrder.js b/src/utils/dataByOrder.js index 1bdedb8a1..eb4a4f586 100644 --- a/src/utils/dataByOrder.js +++ b/src/utils/dataByOrder.js @@ -1,6 +1,7 @@ function orderData(data, order) { if (typeof order === 'function') return data.sort(data); if (typeof order === 'string') order = [order]; + if (!Array.isArray(data)) return []; if (Array.isArray(order)) { let orderComp = [];