Skip to content

Commit 00a7e0a

Browse files
committed
handle ts type errors
1 parent 9f56c10 commit 00a7e0a

File tree

8 files changed

+13
-13
lines changed

8 files changed

+13
-13
lines changed

app/cdap/components/Connections/Create/CategorizedConnectors/ActiveTab.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,9 @@ export function ActiveConnectionTab({ connector, onConnectorSelection, search, o
179179
<ListItem
180180
divider
181181
disableGutters
182-
button={!hasOlderVersion}
182+
button={!hasOlderVersion as any}
183183
className={classes.tableRow}
184-
onClick={(event) => {
184+
onClick={(event: any) => {
185185
if (event.target.dataset.cell !== 'version-toggle') {
186186
onConnectorSelection(conn);
187187
}

app/cdap/components/Experiments/DetailedView/ExperimentMetricsDropdown/AlgorithmDistribution.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import { getAlgorithmLabel } from 'components/Experiments/store/SharedActionCrea
2222
import EmptyMetricMessage from 'components/Experiments/DetailedView/ExperimentMetricsDropdown/EmptyMetricMessage';
2323

2424
const HEIGHT_OF_PIE_CHART = 190;
25-
const colorScale = d3Lib.scaleOrdinal(d3Lib.schemeCategory20);
25+
const colorScale = d3Lib.scaleOrdinal(d3Lib.schemeAccent);
2626
const AlgorithmDistribution = ({ algorithms }) => {
2727
if (!algorithms.length) {
2828
return (

app/cdap/components/Experiments/ListView/ListViewWrapper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const tableHeaders = [
6161
},
6262
];
6363

64-
const colorScale = d3Lib.scaleOrdinal(d3Lib.schemeCategory20);
64+
const colorScale = d3Lib.scaleOrdinal(d3Lib.schemeAccent);
6565
const PLUSBUTTONCONTEXTMENUITEMS = [
6666
{
6767
label: T.translate(`${PREFIX}.createNew`),

app/directives/group-side-panel/group-side-panel-ctrl.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ angular.module(PKG.name + '.commons')
105105
return false;
106106
}
107107
return field.toLowerCase().indexOf(term) > -1;
108-
}
108+
};
109109

110110
if (!trimmedSearchText || !trimmedSearchText.length) {
111111
return group.plugins;
@@ -116,7 +116,7 @@ angular.module(PKG.name + '.commons')
116116
containsTerm(plugin.label, trimmedSearchText) ||
117117
containsTerm(this.generateLabel(plugin), trimmedSearchText);
118118
});
119-
}
119+
};
120120

121121
let sub = AvailablePluginsStore.subscribe(() => {
122122
this.pluginsMap = AvailablePluginsStore.getState().plugins.pluginsMap;

app/directives/react-components/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,4 +189,4 @@ angular
189189
})
190190
.directive('sidePanel', function (reactDirective) {
191191
return reactDirective(window.CaskCommon.SidePanel);
192-
})
192+
});

app/hydrator/services/create/stores/config-store.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -913,7 +913,7 @@ class HydratorPlusPlusConfigStore {
913913
node.configGroups,
914914
node,
915915
node._backendProperties,
916-
node.plugin.properties,
916+
node.plugin.properties
917917
);
918918
visibilityMap = filteredConfigGroups.reduce((fieldsMap, group) => {
919919
group.properties.forEach((property) => {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@
139139
"prettier": "1.19.1",
140140
"react-hot-loader": "4.12.21",
141141
"regenerator-runtime": "^0.13.7",
142-
"sass": "1.36.0",
142+
"sass": "~1.32.0",
143143
"sass-loader": "8.0.0",
144144
"style-loader": "1.1.2",
145145
"stylelint": "12.0.1",

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19142,10 +19142,10 @@ [email protected]:
1914219142
schema-utils "^2.1.0"
1914319143
semver "^6.3.0"
1914419144

19145-
sass@1.36.0:
19146-
version "1.36.0"
19147-
resolved "https://registry.yarnpkg.com/sass/-/sass-1.36.0.tgz#5912ef9d5d16714171ba11cb17edb274c4bbc07e"
19148-
integrity sha512-fQzEjipfOv5kh930nu3Imzq3ie/sGDc/4KtQMJlt7RRdrkQSfe37Bwi/Rf/gfuYHsIuE1fIlDMvpyMcEwjnPvg==
19145+
sass@~1.32.0:
19146+
version "1.32.13"
19147+
resolved "https://registry.yarnpkg.com/sass/-/sass-1.32.13.tgz#8d29c849e625a415bce71609c7cf95e15f74ed00"
19148+
integrity sha512-dEgI9nShraqP7cXQH+lEXVf73WOPCse0QlFzSD8k+1TcOxCMwVXfQlr0jtoluZysQOyJGnfr21dLvYKDJq8HkA==
1914919149
dependencies:
1915019150
chokidar ">=3.0.0 <4.0.0"
1915119151

0 commit comments

Comments
 (0)