Skip to content

Commit

Permalink
handle ts type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mrahanjam committed May 6, 2022
1 parent 9f56c10 commit beb4d67
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,9 @@ export function ActiveConnectionTab({ connector, onConnectorSelection, search, o
<ListItem
divider
disableGutters
button={!hasOlderVersion}
button={!hasOlderVersion as any}
className={classes.tableRow}
onClick={(event) => {
onClick={(event: any) => {
if (event.target.dataset.cell !== 'version-toggle') {
onConnectorSelection(conn);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { getAlgorithmLabel } from 'components/Experiments/store/SharedActionCrea
import EmptyMetricMessage from 'components/Experiments/DetailedView/ExperimentMetricsDropdown/EmptyMetricMessage';

const HEIGHT_OF_PIE_CHART = 190;
const colorScale = d3Lib.scaleOrdinal(d3Lib.schemeCategory20);
const colorScale = d3Lib.scaleOrdinal(d3Lib.schemeAccent);
const AlgorithmDistribution = ({ algorithms }) => {
if (!algorithms.length) {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const tableHeaders = [
},
];

const colorScale = d3Lib.scaleOrdinal(d3Lib.schemeCategory20);
const colorScale = d3Lib.scaleOrdinal(d3Lib.schemeAccent);
const PLUSBUTTONCONTEXTMENUITEMS = [
{
label: T.translate(`${PREFIX}.createNew`),
Expand Down
4 changes: 2 additions & 2 deletions app/directives/group-side-panel/group-side-panel-ctrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ angular.module(PKG.name + '.commons')
return false;
}
return field.toLowerCase().indexOf(term) > -1;
}
};

if (!trimmedSearchText || !trimmedSearchText.length) {
return group.plugins;
Expand All @@ -116,7 +116,7 @@ angular.module(PKG.name + '.commons')
containsTerm(plugin.label, trimmedSearchText) ||
containsTerm(this.generateLabel(plugin), trimmedSearchText);
});
}
};

let sub = AvailablePluginsStore.subscribe(() => {
this.pluginsMap = AvailablePluginsStore.getState().plugins.pluginsMap;
Expand Down
2 changes: 1 addition & 1 deletion app/directives/react-components/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,4 +189,4 @@ angular
})
.directive('sidePanel', function (reactDirective) {
return reactDirective(window.CaskCommon.SidePanel);
})
});
2 changes: 1 addition & 1 deletion app/hydrator/services/create/stores/config-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,7 @@ class HydratorPlusPlusConfigStore {
node.configGroups,
node,
node._backendProperties,
node.plugin.properties,
node.plugin.properties
);
visibilityMap = filteredConfigGroups.reduce((fieldsMap, group) => {
group.properties.forEach((property) => {
Expand Down

0 comments on commit beb4d67

Please sign in to comment.