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