Skip to content

Commit

Permalink
Use dynamic: false for config saved object mappings (elastic#70436)
Browse files Browse the repository at this point in the history
  • Loading branch information
rudolf authored Jul 2, 2020
1 parent 83beede commit a0e2630
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/core/server/ui_settings/saved_objects/ui_settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@ export const uiSettingsType: SavedObjectsType = {
hidden: false,
namespaceType: 'single',
mappings: {
// we don't want to allow `true` in the public `SavedObjectsTypeMappingDefinition` type, however
// this is needed for the config that is kinda a special type. To avoid adding additional internal types
// just for this, we hardcast to any here.
dynamic: true as any,
dynamic: false,
properties: {
buildNum: {
type: 'keyword',
Expand Down

0 comments on commit a0e2630

Please sign in to comment.