Added metrics blade link and fixed SelfServe bugs (#764)

* Added metrics blade link

* fixed lint error
This commit is contained in:
Srinath Narayanan 2021-05-10 17:36:50 -07:00 committed by GitHub
parent a81b1a40a3
commit 4c506da7b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 5 deletions

View File

@ -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<SelfServeComponentProps,
const initialValues = await this.props.descriptor.initialize();
this.props.descriptor.inputNames.map((inputName) => {
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);

View File

@ -34,6 +34,7 @@ export enum BladeType {
CassandraKeys = "cassandraDbKeys",
GremlinKeys = "keys",
TableKeys = "tableKeys",
Metrics = "metrics",
}
export interface DecoratorProperties {