Skip to content

Commit

Permalink
param updates
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-johnson-cai committed Sep 18, 2024
1 parent 55074df commit b05524b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/param.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@ class RallyParam {
}
}

if (options?.workspace) {
if (isString(options.workspace)) {
const segments = options.workspace.split("/");
const workspaceID = segments.pop();
mappedParams.workspace = `/workspace/${workspaceID}`;
} else if (isNumber(options.workspace)) {
mappedParams.workspace = `/workspace/${options.workspace}`;
}
}

if (options?.project) {
if (isString(options.project)) {
const segments = options.project.split("/");
Expand Down

0 comments on commit b05524b

Please sign in to comment.