mirror of
https://github.com/baptisteArno/typebot.io.git
synced 2026-06-16 21:10:26 +08:00
🐛 Fix retrocompat on parseColumnsOrder
This commit is contained in:
parent
6655635da7
commit
eedf998420
@ -3,4 +3,8 @@ import type { ResultHeaderCell } from "./schemas/results";
|
||||
export const parseColumnsOrder = (
|
||||
existingOrder: string[] | undefined,
|
||||
resultHeader: ResultHeaderCell[],
|
||||
) => ["select", ...(existingOrder ?? resultHeader.map((h) => h.id)), "logs"];
|
||||
) => {
|
||||
return existingOrder?.at(0) === "select"
|
||||
? existingOrder
|
||||
: ["select", ...(existingOrder ?? resultHeader.map((h) => h.id)), "logs"];
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user