Skip to content

Commit 0455a66

Browse files
committed
attempting removal of potentially superfluous add() call
1 parent 174e7dd commit 0455a66

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/deriveLinkDefaults.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -179,14 +179,7 @@ export function initialLoader(datasets: ILinkConfig['datasets']) {
179179
}
180180
}
181181

182-
return Promise.all(resolvedDataSets).then((data) => {
183-
const cleaned = data.filter((d): d is DataSet => d != null);
184-
cleaned.forEach((d) => {
185-
// TODO: is this necessary??
186-
add(d);
187-
});
188-
return cleaned;
189-
});
182+
return Promise.all(resolvedDataSets).then((data) => data.filter((d): d is DataSet => d != null));
190183
};
191184
}
192185

0 commit comments

Comments
 (0)