Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecote committed Feb 19, 2021
1 parent 72fb3f5 commit 461016b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/server/saved_objects/service/lib/filter_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ export const fieldDefined = (indexMappings: IndexMapping, key: string): boolean
isFieldDefined = get(indexMappings, mapping) != null;
}

// Handle scenario when the key references a flattened type
// If the path is for a flattned type field, we'll assume the mappings are defined.
if (!isFieldDefined) {
const keys = key.split('.');
for (let i = 0; i < keys.length; i++) {
Expand Down

0 comments on commit 461016b

Please sign in to comment.