diff --git a/src/operations/indexes.ts b/src/operations/indexes.ts index ce9a6b66258..1259bff31b2 100644 --- a/src/operations/indexes.ts +++ b/src/operations/indexes.ts @@ -204,7 +204,7 @@ function constructIndexDescriptionMap(indexSpec: IndexSpecification): Map { - const validProvidedOptions = Object.entries({ ...description }).filter(([optionName]) => + const validProvidedOptions = Object.entries(description).filter(([optionName]) => VALID_INDEX_OPTIONS.has(optionName) );