Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 6164f66

Browse files
authored
Fix accidental destructure of string binding names (#439)
1 parent e9a21be commit 6164f66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/tre/src/plugins/shared/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export function namespaceEntries(
5555
namespaces?: Record<string, string> | string[]
5656
): [bindingName: string, id: string][] {
5757
if (Array.isArray(namespaces)) {
58-
return namespaces.map(([bindingName]) => [bindingName, bindingName]);
58+
return namespaces.map((bindingName) => [bindingName, bindingName]);
5959
} else if (namespaces !== undefined) {
6060
return Object.entries(namespaces);
6161
} else {

0 commit comments

Comments
 (0)