*Use ?. on constructor
This commit is contained in:
parent
875af27733
commit
dc806ba98e
|
@ -445,7 +445,7 @@ async function createProtomuxChannel(aq: ActiveQuery) {
|
||||||
}
|
}
|
||||||
return (...args: any) => {
|
return (...args: any) => {
|
||||||
args = args.filter(
|
args = args.filter(
|
||||||
(item: any) => item.constructor.name.toLowerCase() !== "channel"
|
(item: any) => item?.constructor.name.toLowerCase() !== "channel"
|
||||||
);
|
);
|
||||||
|
|
||||||
if (name === "destroy") {
|
if (name === "destroy") {
|
||||||
|
|
Loading…
Reference in New Issue