From: Peter Amstutz Date: Wed, 10 May 2023 17:43:17 +0000 (-0400) Subject: 20487: Use === instead of == X-Git-Tag: 2.6.2~3^2 X-Git-Url: https://git.arvados.org/arvados-workbench2.git/commitdiff_plain/dbc43c1a85ddf08bb2eab90b6e7cadabdc8e357c 20487: Use === instead of == Arvados-DCO-1.1-Signed-off-by: Peter Amstutz --- diff --git a/src/components/collection-panel-files/collection-panel-files.tsx b/src/components/collection-panel-files/collection-panel-files.tsx index 4896641b..ddf30364 100644 --- a/src/components/collection-panel-files/collection-panel-files.tsx +++ b/src/components/collection-panel-files/collection-panel-files.tsx @@ -261,7 +261,7 @@ export const CollectionPanelFiles = withStyles(styles)(connect((state: RootState const rightData = pathData[rightKey]; React.useEffect(() => { - if (props.currentItemUuid && extractUuidKind(props.currentItemUuid) == ResourceKind.COLLECTION) { + if (props.currentItemUuid && extractUuidKind(props.currentItemUuid) === ResourceKind.COLLECTION) { setPathData({}); setPath([props.currentItemUuid]); } diff --git a/src/services/groups-service/groups-service.ts b/src/services/groups-service/groups-service.ts index cdbe8bab..fc603300 100644 --- a/src/services/groups-service/groups-service.ts +++ b/src/services/groups-service/groups-service.ts @@ -56,7 +56,7 @@ export class GroupsService< select: select ? JSON.stringify(select.map(sel => { const sp = sel.split("."); - return sp.length == 2 ? (sp[0] + "." + snakeCase(sp[1])) : snakeCase(sel); + return sp.length === 2 ? (sp[0] + "." + snakeCase(sp[1])) : snakeCase(sel); })) : undefined };