Skip to content

Commit 78f558d

Browse files
committed
fix: add undefined value for discovery meta
1 parent 90e8562 commit 78f558d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/context/necord-base.discovery.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ export abstract class NecordBaseDiscovery<T = any> {
2020
public constructor(protected readonly meta: T) {}
2121

2222
public getClass() {
23-
return this.discovery.class;
23+
return this.discovery?.class;
2424
}
2525

2626
public getHandler() {
27-
return this.discovery.handler;
27+
return this.discovery?.handler;
2828
}
2929

3030
public setDiscoveryMeta(meta: DiscoveredItem) {

0 commit comments

Comments
 (0)