Skip to content

Commit

Permalink
addressed comments for undefined variables
Browse files Browse the repository at this point in the history
Signed-off-by: sumukhswamy <[email protected]>
  • Loading branch information
sumukhswamy committed Aug 12, 2024
1 parent 16d20ef commit 39545a4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,6 @@ export function AddedIntegrationsTable(props: AddedIntegrationsTableProps) {
),
].sort();

console.log(mdsLabels);

const search = {
box: {
incremental: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,7 @@ export interface IntegrationConfigProps {
dataSourceEnabled: boolean;
dataSourceManagement: DataSourceManagementPluginSetup;
savedObjectsMDSClient: SavedObjectsStart;
handleSelectedDataSourceChange: (
dataSourceMDSId: string | undefined,
dataSourceMDSLabel: string | undefined
) => void;
handleSelectedDataSourceChange: (dataSourceMDSId?: string, dataSourceMDSLabel?: string) => void;
}

type SetupCallout = { show: true; title: string; color?: Color; text?: string } | { show: false };
Expand Down Expand Up @@ -426,7 +423,7 @@ export function SetupIntegrationForm({
const updateConfig = (updates: Partial<IntegrationSetupInputs>) =>
setConfig(Object.assign({}, integConfig, updates));

const handleSelectedDataSourceChange = (id: string | undefined, label: string | undefined) => {
const handleSelectedDataSourceChange = (id?: string, label?: string) => {
setDataSourceMDSId(id);
setDataSourceMDSLabel(label);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,7 @@ export function IntegrationConnectionInputs({
dataSourceEnabled: boolean;
dataSourceManagement: DataSourceManagementPluginSetup;
savedObjectsMDSClient: SavedObjectsStart;
handleSelectedDataSourceChange: (
dataSourceMDSId: string | undefined,
dataSourceMDSLabel: string | undefined
) => void;
handleSelectedDataSourceChange: (dataSourceMDSId?: string, dataSourceMDSLabel?: string) => void;
lockConnectionType?: boolean;
}) {
const [dataSourceMDSId, setDataSourceMDSId] = useState<string | undefined>('');
Expand Down
4 changes: 2 additions & 2 deletions server/adaptors/integrations/integrations_manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ export class IntegrationsManager {
templateName: string,
name: string,
indexPattern: string,
dataSourceMDSId: string | undefined,
dataSourceMDSLabel: string | undefined,
dataSourceMDSId?: string,
dataSourceMDSLabel?: string,
workflows?: string[],
dataSource?: string,
tableName?: string
Expand Down

0 comments on commit 39545a4

Please sign in to comment.