We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27fde6e commit 249adc0Copy full SHA for 249adc0
src/integrationCapture.ts
@@ -222,10 +222,12 @@ export default class IntegrationCapture {
222
private filterMappings(
223
outputType: valueof<typeof IntegrationOutputs>
224
): IntegrationIdMapping {
225
- return Object.fromEntries(
226
- Object.entries(integrationMapping).filter(
227
- ([, value]) => value.output === outputType
228
- )
229
- );
+ const filteredMappings: IntegrationIdMapping = {};
+ for (const key in integrationMapping) {
+ if (integrationMapping[key].output === outputType) {
+ filteredMappings[key] = integrationMapping[key];
+ }
230
231
+ return filteredMappings;
232
}
233
0 commit comments