diff --git a/src/SelfServe/SelfServeComponent.tsx b/src/SelfServe/SelfServeComponent.tsx index c2408e38d..732c5df17 100644 --- a/src/SelfServe/SelfServeComponent.tsx +++ b/src/SelfServe/SelfServeComponent.tsx @@ -1,4 +1,3 @@ -import { TFunction } from "i18next"; import { CommandBar, ICommandBarItemProps, @@ -10,6 +9,7 @@ import { Stack, Text, } from "@fluentui/react"; +import { TFunction } from "i18next"; import promiseRetry, { AbortError } from "p-retry"; import React from "react"; import { WithTranslation } from "react-i18next"; @@ -130,10 +130,7 @@ export class SelfServeComponent extends React.Component { - let initialValue = initialValues.get(inputName); - if (!initialValue) { - initialValue = { value: undefined, hidden: false, disabled: false }; - } + const initialValue = initialValues.get(inputName); currentValues = currentValues.set(inputName, initialValue); baselineValues = baselineValues.set(inputName, initialValue); initialValues.delete(inputName); diff --git a/src/SelfServe/SelfServeUtils.tsx b/src/SelfServe/SelfServeUtils.tsx index 90993f7d8..e82084069 100644 --- a/src/SelfServe/SelfServeUtils.tsx +++ b/src/SelfServe/SelfServeUtils.tsx @@ -34,6 +34,7 @@ export enum BladeType { CassandraKeys = "cassandraDbKeys", GremlinKeys = "keys", TableKeys = "tableKeys", + Metrics = "metrics", } export interface DecoratorProperties {