Added metrics blade link and fixed SelfServe bugs (#764)
* Added metrics blade link * fixed lint error
This commit is contained in:
parent
a81b1a40a3
commit
4c506da7b9
|
@ -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);
|
||||
|
|
|
@ -34,6 +34,7 @@ export enum BladeType {
|
|||
CassandraKeys = "cassandraDbKeys",
|
||||
GremlinKeys = "keys",
|
||||
TableKeys = "tableKeys",
|
||||
Metrics = "metrics",
|
||||
}
|
||||
|
||||
export interface DecoratorProperties {
|
||||
|
|
Loading…
Reference in New Issue