Merge branch '18284-vm-listing' into main. Closes #18284
[arvados-workbench2.git] / src / views-components / data-explorer / renderers.tsx
index ce6c02ca2cc29d589a3e954ead70fc4192874fd4..a2acaca4525e6bceb6d65f869dae09f986412c21 100644 (file)
@@ -342,7 +342,7 @@ const clusterColors = [
 export const ResourceCluster = (props: { uuid: string }) => {
     const CLUSTER_ID_LENGTH = 5;
     const pos = props.uuid.length > CLUSTER_ID_LENGTH ? props.uuid.indexOf('-') : 5;
-    const clusterId = pos >= CLUSTER_ID_LENGTH ? props.uuid.substr(0, pos) : '';
+    const clusterId = pos >= CLUSTER_ID_LENGTH ? props.uuid.substring(0, pos) : '';
     const ci = pos >= CLUSTER_ID_LENGTH ? (((((
         (props.uuid.charCodeAt(0) * props.uuid.charCodeAt(1))
         + props.uuid.charCodeAt(2))