This commit is contained in:
MuslemRahimi 2024-12-12 16:21:08 +01:00
parent 6cc9aa728e
commit 31cf0ab4ef

View File

@ -870,8 +870,10 @@
allRows.map((row) => [row.rule, { name: row.name, type: row.type }]),
);
// Separate preferred keys and other keys, excluding "type"
const keys = Object?.keys(data?.at(0))?.filter((key) => key !== "type");
// Separate preferred keys and other keys, excluding "type" and "previous"
const keys = Object?.keys(data?.at(0))?.filter(
(key) => key !== "type" && key !== "previous",
);
// Merge the preferred order with the default list order
const orderedKeys = [