mirror of https://github.com/buster-so/buster.git
change link for collection
This commit is contained in:
parent
e12fe43913
commit
07e7d05867
|
@ -164,8 +164,7 @@ const CollectionIconRecord: Record<string, React.ReactNode> = {
|
|||
const createAssetLink = (asset: BusterCollectionItemAsset, collectionId: string) => {
|
||||
if (asset.asset_type === ShareAssetType.METRIC) {
|
||||
return createBusterRoute({
|
||||
route: BusterRoutes.APP_COLLECTIONS_ID_METRICS_ID,
|
||||
collectionId,
|
||||
route: BusterRoutes.APP_METRIC_ID,
|
||||
metricId: asset.id
|
||||
});
|
||||
}
|
||||
|
|
|
@ -2,7 +2,6 @@ export enum BusterAppRoutes {
|
|||
APP_HOME = '/app/home',
|
||||
APP_COLLECTIONS = '/app/collections',
|
||||
APP_COLLECTIONS_ID = '/app/collections/:collectionId',
|
||||
APP_COLLECTIONS_ID_METRICS_ID = '/app/collections/:collectionId/metrics/:metricId',
|
||||
APP_METRIC = '/app/metrics',
|
||||
APP_METRIC_ID = '/app/metrics/:metricId',
|
||||
APP_METRIC_ID_CHART = '/app/metrics/:metricId/chart',
|
||||
|
@ -101,11 +100,6 @@ export type BusterAppRoutesWithArgs = {
|
|||
route: BusterAppRoutes.APP_DATASETS_ID_EDITOR;
|
||||
datasetId: string;
|
||||
};
|
||||
[BusterAppRoutes.APP_COLLECTIONS_ID_METRICS_ID]: {
|
||||
route: BusterAppRoutes.APP_COLLECTIONS_ID_METRICS_ID;
|
||||
collectionId: string;
|
||||
metricId: string;
|
||||
};
|
||||
[BusterAppRoutes.NEW_USER]: { route: BusterAppRoutes.NEW_USER };
|
||||
[BusterAppRoutes.APP_CHAT]: { route: BusterAppRoutes.APP_CHAT };
|
||||
[BusterAppRoutes.APP_CHAT_ID]: { route: BusterAppRoutes.APP_CHAT_ID; chatId: string };
|
||||
|
|
Loading…
Reference in New Issue