fix "a.getRenderer is not a function" error in popups, use optional
chaining synthax
This commit is contained in:
parent
b7954ce11b
commit
7cee79f103
|
@ -146,8 +146,8 @@ class SocketClient {
|
|||
this.store.getState().canvas.canvasId,
|
||||
));
|
||||
// register chunks
|
||||
const chunkids = this.getRenderer().recChunkIds;
|
||||
if (chunkids.length) {
|
||||
const chunkids = this.getRenderer?.().recChunkIds;
|
||||
if (chunkids?.length) {
|
||||
console.log(`Register ${chunkids.length} chunks`);
|
||||
this.send(dehydrateRegMChunks(chunkids));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user