diff --git a/packages/devtools-kit/src/ctx/state.ts b/packages/devtools-kit/src/ctx/state.ts index e5480ced..70b48109 100644 --- a/packages/devtools-kit/src/ctx/state.ts +++ b/packages/devtools-kit/src/ctx/state.ts @@ -210,9 +210,9 @@ export function addCustomCommand(action: CustomCommand) { icon: resolveIcon(action.icon), children: action.children ? action.children.map((child: CustomCommand) => ({ - ...child, - icon: resolveIcon(child.icon), - })) + ...child, + icon: resolveIcon(child.icon), + })) : undefined, }) updateAllStates()