diff --git a/src/commands/explore.ts b/src/commands/explore.ts index 322d08d9e..97a65d767 100644 --- a/src/commands/explore.ts +++ b/src/commands/explore.ts @@ -713,7 +713,7 @@ export const exploreCommand = buildListCommand("explore", { const userSuppliedFields = flags.field && flags.field.length > 0; let fieldList = [...defaultFieldsForDataset(dataset)]; if (userSuppliedFields) { - fieldList = flags.field; + fieldList = Array.isArray(flags.field) ? flags.field : [flags.field]; } const timeRange = flags.period; const environment = parseReplayEnvironmentFilter(flags.environment);