Skip to content

Commit b7e58d6

Browse files
committed
Fix Yoga plugins being registered twice when class is provided multiple times
1 parent 6bb2c0b commit b7e58d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/graphql/driver.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export class Driver extends YogaDriver<'fastify'> {
2020
);
2121
options.plugins = [
2222
...(options.plugins ?? []),
23-
...discoveredPlugins.map((cls) => cls.discoveredClass.instance),
23+
...new Set(discoveredPlugins.map((cls) => cls.discoveredClass.instance)),
2424
];
2525

2626
await super.start(options);

0 commit comments

Comments
 (0)