Skip to content

Commit

Permalink
update attribute key from version to dataSourceVersion
Browse files Browse the repository at this point in the history
Signed-off-by: Zilong Xia <[email protected]>
  • Loading branch information
ZilongX committed Mar 18, 2024
1 parent 2c900dd commit 028ae3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const CreateDataSourceWizard: React.FunctionComponent<CreateDataSourceWiz
setIsLoading(true);
try {
const version = await fetchDataSourceVersion(http, attributes);
attributes.version = version.dataSourceVersion;
attributes.dataSourceVersion = version.dataSourceVersion;
await createSingleDataSource(savedObjects.client, attributes);
props.history.push('');
} catch (e) {
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/data_source_management/public/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export interface DataSourceAttributes extends SavedObjectAttributes {
title: string;
description?: string;
endpoint?: string;
version?: string;
dataSourceVersion?: string;
auth: {
type: AuthType | string;
credentials:
Expand Down

0 comments on commit 028ae3c

Please sign in to comment.