We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 839c31e commit eb1ce3fCopy full SHA for eb1ce3f
packages/g6/src/registry/register.ts
@@ -40,7 +40,7 @@ export function register<T extends ExtensionCategory>(
40
Ctor: ExtensionRegistry[T][string],
41
) {
42
const ext = EXTENSION_REGISTRY[category][type];
43
- if (ext && ext) {
+ if (ext) {
44
print.warn(`The extension ${type} of ${category} has been registered before, and will be overridden.`);
45
}
46
0 commit comments