Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
Signed-off-by: Prabhat Sharma <[email protected]>
  • Loading branch information
Prabhat Sharma committed Apr 5, 2024
1 parent c45d1b3 commit 4043672
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ export class CreateRollupForm extends Component<CreateRollupFormProps, CreateRol
const dataSourceReadOnly = this.props.dataSourceReadOnly;
const setDataSourceReadOnly = this.props.setDataSourceReadOnly;

if (!dataSourceReadOnly) {
if (this.props.multiDataSourceEnabled && !dataSourceReadOnly) {
setDataSourceReadOnly(true);
}

Expand Down Expand Up @@ -266,7 +266,7 @@ export class CreateRollupForm extends Component<CreateRollupFormProps, CreateRol
const dataSourceReadOnly = this.props.dataSourceReadOnly;
const setDataSourceReadOnly = this.props.setDataSourceReadOnly;

if (dataSourceReadOnly) {
if (this.props.multiDataSourceEnabled && dataSourceReadOnly) {
setDataSourceReadOnly(false);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ export class CreateTransformForm extends Component<CreateTransformFormProps, Cre

const dataSourceReadOnly = this.props.dataSourceReadOnly;
const setDataSourceReadOnly = this.props.setDataSourceReadOnly;
if (!dataSourceReadOnly) {
if (this.props.multiDataSourceEnabled && !dataSourceReadOnly) {
setDataSourceReadOnly(true);
}

Expand Down Expand Up @@ -282,7 +282,7 @@ export class CreateTransformForm extends Component<CreateTransformFormProps, Cre
const dataSourceReadOnly = this.props.dataSourceReadOnly;
const setDataSourceReadOnly = this.props.setDataSourceReadOnly;

if (dataSourceReadOnly) {
if (this.props.multiDataSourceEnabled && dataSourceReadOnly) {
setDataSourceReadOnly(false);
}
}
Expand Down
1 change: 0 additions & 1 deletion public/pages/Main/Main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ import CreateComposableTemplate from "../CreateComposableTemplate";
import { DataSourceMenuContext, DataSourceMenuProperties } from "../../services/DataSourceMenuContext";
import queryString from "query-string";
import { DataSourceManagementPluginSetup } from "../../../../../src/plugins/data_source_management/public";
import { bool } from "aws-sdk/clients/signer";

enum Navigation {
IndexManagement = "Index Management",
Expand Down

0 comments on commit 4043672

Please sign in to comment.