mirror of
https://github.com/makeplane/plane
synced 2025-08-07 19:59:33 +00:00
fix: update processUrl to handle custom-work-items in peek view
This commit is contained in:
@@ -78,12 +78,12 @@ export class AnalyticsService extends APIService {
|
||||
processUrl<T extends string>(
|
||||
endpoint: string,
|
||||
workspaceSlug: string,
|
||||
tab: T,
|
||||
tab: TAnalyticsGraphsBase | TAnalyticsTabsBase,
|
||||
params?: Record<string, any>,
|
||||
isPeekView?: boolean
|
||||
) {
|
||||
let processedUrl = `/api/workspaces/${workspaceSlug}`;
|
||||
if (isPeekView && tab === "work-items") {
|
||||
if (isPeekView && (tab === "work-items" || tab === "custom-work-items")) {
|
||||
const projectId = params?.project_ids.split(",")[0];
|
||||
processedUrl += `/projects/${projectId}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user