Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

lint: Remove ocnosle.log

Rene Wang2cc5c6611f82
diff --git a/src/features/ResourceManager/components/Explorer/ListView/index.tsx b/src/features/ResourceManager/components/Explorer/ListView/index.tsx
index 22d8d5c3784..a8eadb9e426 100644
--- a/src/features/ResourceManager/components/Explorer/ListView/index.tsx
+++ b/src/features/ResourceManager/components/Explorer/ListView/index.tsx
@@ -2,6 +2,7 @@
import { Center, Checkbox, Flexbox } from '@lobehub/ui';
import { createStaticStyles, cssVar, cx } from 'antd-style';
+import debug from 'debug';
import { type DragEvent, memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { Virtuoso, type VirtuosoHandle } from 'react-virtuoso';
@@ -17,6 +18,8 @@ import { sortFileList } from '@/app/[variants]/(main)/resource/features/store/se
import FileListItem, { FILE_DATE_WIDTH, FILE_SIZE_WIDTH } from './ListItem';
+const log = debug('resource-manager:list-view');
+
const styles = createStaticStyles(({ css }) => ({
dropZone: css`
position: relative;
@@ -159,7 +162,7 @@ const ListView = memo(() => {
// Handle automatic load more when reaching the end
const handleEndReached = useCallback(async () => {
- console.log('handleEndReached', fileListHasMore, isLoadingMore);
+ log('handleEndReached', fileListHasMore, isLoadingMore);
if (!fileListHasMore || isLoadingMore) return;