We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f36f0ee commit 21ce469Copy full SHA for 21ce469
recipes/crypto-create-credentials/src/workflow.ts
@@ -181,9 +181,11 @@ function handleDestructuredImport(
181
localEdits.push(statement.replace(newImportStatement));
182
finalState = { ...currentState, added: true };
183
} else {
184
- const otherProps = destructuredProps
185
- .filter((id) => id.text() !== 'createCredentials')
186
- .map((id) => id.text());
+ const otherProps = [];
+ for (const d of destructuredProps) {
+ const text = d.text();
187
+ if (text !== 'createCredentials') otherProps.push(text);
188
+ }
189
190
const newDestructuredString = `{ ${otherProps.join(', ')} }`;
191
localEdits.push(specifiersNode.replace(newDestructuredString));
0 commit comments