Skip to content

Commit

Permalink
Updated provider title
Browse files Browse the repository at this point in the history
  • Loading branch information
DigneshGujarathi committed Nov 11, 2020
1 parent fbdc490 commit c05060c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/containers/SettingList/Providers/Providers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,9 @@ export const Providers: React.SFC<ProvidersProps> = ({ match }) => {
FormSchema = Yup.object().shape(validation);
};

let title;
if (providerData) {
title = providerData.providers[0].name;
providerData.providers.map((provider: any) => {
keys = JSON.parse(provider.keys);
secrets = JSON.parse(provider.secrets);
Expand All @@ -176,7 +178,7 @@ export const Providers: React.SFC<ProvidersProps> = ({ match }) => {
<FormLayout
backLinkButton={{ text: 'Back to settings', link: '/settings' }}
{...queries}
title={type}
title={title}
match={param}
states={states}
setStates={setCredential}
Expand Down

0 comments on commit c05060c

Please sign in to comment.