mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-08 17:06:15 -08:00
fix(workspace-shell): accept readonly viewCommands in palette builder
Production build (stricter than test/dev) flagged the helper signature as requiring a mutable array while WorkspaceViewCommandService.commands returns readonly. The body uses spread, so widening the parameter to readonly is the correct fix and unblocks `nx build web` plus E2E. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> Entire-Checkpoint: c2cea9c530e6
This commit is contained in:
1 parent
d1cd805622
commit
0ad54e7939
1 file changed
+1
-1
+1
-1
@@ -38,7 +38,7 @@ export interface CommandBuilderContext {
|
||||
|
||||
export function buildCommandPaletteItems(
|
||||
ctx: CommandBuilderContext,
|
||||
viewCommands: WorkspaceCommandContribution[]
|
||||
viewCommands: readonly WorkspaceCommandContribution[]
|
||||
): WorkspaceResolvedCommandItem[] {
|
||||
return [
|
||||
...getViewCommandDefinitions(ctx),
|
||||
|
||||
Reference in new issue
Block a user