We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a793613 commit ff399cbCopy full SHA for ff399cb
src/index.js
@@ -299,7 +299,7 @@ async function setData(element, data) {
299
300
if (data.$filter && data.$filter.query) {
301
let sortedData = sort$in(data[type], data.$filter.query)
302
- if (sortedData)
+ if (sortedData && sortedData.length)
303
data[type] = sortedData
304
}
305
@@ -336,7 +336,7 @@ async function setData(element, data) {
336
337
338
339
- if (!data[type])
+ if (!data[type] || !data[type].length)
340
continue;
341
342
let action = el.getAttribute('actions')
0 commit comments