fis(orchestration): Properly handle select all (#6742)

**What**
Fix select `*` without breaking select none `[]`
This commit is contained in:
Adrien de Peretti
2024-03-20 12:09:54 +00:00
committed by GitHub
parent 05e857d256
commit 06f22bb48a
4 changed files with 62 additions and 21 deletions
@@ -45,6 +45,7 @@ export class RemoteJoiner {
let filteredData: Record<string, unknown> = {}
if (fields.includes("*")) {
// select all fields
filteredData = data
} else {
filteredData = fields.reduce((acc: any, field: string) => {