From f0713400d0433f93cf548239253947de33b24a1a Mon Sep 17 00:00:00 2001 From: mitsuha Date: Thu, 4 Aug 2022 18:39:01 +0800 Subject: [PATCH] fixbug: [issue76]when click activities button, throw error; --- .../layout/src/workspace-sidebar/activities/activities.tsx | 2 -- .../datasource/db-service/src/services/workspace/user-config.ts | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/libs/components/layout/src/workspace-sidebar/activities/activities.tsx b/libs/components/layout/src/workspace-sidebar/activities/activities.tsx index 195bc1fa09..52ad5d2c5c 100644 --- a/libs/components/layout/src/workspace-sidebar/activities/activities.tsx +++ b/libs/components/layout/src/workspace-sidebar/activities/activities.tsx @@ -70,8 +70,6 @@ export const Activities = () => { return; } - console.log('不执行吗'); - const RecentEditPages = (await services.api.userConfig.getRecentEditedPages( currentSpaceId diff --git a/libs/datasource/db-service/src/services/workspace/user-config.ts b/libs/datasource/db-service/src/services/workspace/user-config.ts index 6fb96bb04c..887bb1ec2a 100644 --- a/libs/datasource/db-service/src/services/workspace/user-config.ts +++ b/libs/datasource/db-service/src/services/workspace/user-config.ts @@ -3,7 +3,7 @@ import { ServiceBaseClass } from '../base'; import { ObserveCallback, ReturnUnobserve } from '../database'; import { PageTree } from './page-tree'; import { PageConfigItem } from './types'; -import { QueryIndexMetadata } from '@toeverything/datasource/jwt'; +import type { QueryIndexMetadata } from '@toeverything/datasource/jwt'; /** Operate the user configuration at the workspace level */ export class UserConfig extends ServiceBaseClass {