mirror of
https://github.com/lobehub/lobehub.git
synced 2026-03-27 13:29:15 +07:00
@@ -29,8 +29,11 @@ export const ModifyNodesInspector = memo<BuiltinInspectorProps<ModifyNodesArgs,
|
||||
|
||||
// Count operations by type
|
||||
const counts = useMemo(() => {
|
||||
const operations = args?.operations || partialArgs?.operations || [];
|
||||
return operations.reduce(
|
||||
const ops = args?.operations || partialArgs?.operations;
|
||||
// During streaming, operations may be a partial object instead of array
|
||||
if (!Array.isArray(ops)) return { insert: 0, modify: 0, remove: 0 };
|
||||
|
||||
return ops.reduce(
|
||||
(acc, op) => {
|
||||
switch (op.action) {
|
||||
case 'insert': {
|
||||
|
||||
@@ -76,12 +76,12 @@ const StarterList = memo(() => {
|
||||
key: 'image',
|
||||
titleKey: 'starter.image',
|
||||
},
|
||||
{
|
||||
disabled: true,
|
||||
icon: MicroscopeIcon,
|
||||
key: 'research',
|
||||
titleKey: 'starter.deepResearch',
|
||||
},
|
||||
// {
|
||||
// disabled: true,
|
||||
// icon: MicroscopeIcon,
|
||||
// key: 'research',
|
||||
// titleKey: 'starter.deepResearch',
|
||||
// },
|
||||
],
|
||||
[],
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user