17914: Replaces deprecated substr() with substring().
[arvados-workbench2.git] / src / routes / routes.ts
index 528a037611c45581e83dd49836e272e64b9e83b7..41c71f7ca87994a32938d9c0138d1ba204a1ce6d 100644 (file)
@@ -68,7 +68,7 @@ export const getResourceUrl = (uuid: string) => {
 
 export const getNavUrl = (uuid: string, config: FederationConfig) => {
     const path = getResourceUrl(uuid) || "";
-    const cls = uuid.substr(0, 5);
+    const cls = uuid.substring(0, 5);
     if (cls === config.localCluster || extractUuidKind(uuid) === ResourceKind.USER || COLLECTION_PDH_REGEX.exec(uuid)) {
         return path;
     } else if (config.remoteHostsConfig[cls]) {