🐛 (results) Fix export duplicate columns when no order set
This commit is contained in:
@@ -86,14 +86,16 @@ export const SelectionToolbar = ({
|
|||||||
return [...currentHeaderLabels, columnLabel]
|
return [...currentHeaderLabels, columnLabel]
|
||||||
}, [])
|
}, [])
|
||||||
.concat(
|
.concat(
|
||||||
resultHeader
|
typebot?.resultsTablePreferences?.columnsOrder
|
||||||
.filter(
|
? resultHeader
|
||||||
(headerCell) =>
|
.filter(
|
||||||
!typebot?.resultsTablePreferences?.columnsOrder.includes(
|
(headerCell) =>
|
||||||
headerCell.id
|
!typebot?.resultsTablePreferences?.columnsOrder.includes(
|
||||||
|
headerCell.id
|
||||||
|
)
|
||||||
)
|
)
|
||||||
)
|
.map((headerCell) => headerCell.label)
|
||||||
.map((headerCell) => headerCell.label)
|
: []
|
||||||
)
|
)
|
||||||
|
|
||||||
const data = dataToUnparse.map<{ [key: string]: string }>((data) => {
|
const data = dataToUnparse.map<{ [key: string]: string }>((data) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user