fix: widget re-render issues, ws, build + rename pkg

This commit is contained in:
Mohamed Marrouchi
2024-10-12 19:43:34 +01:00
parent b08ee24fc3
commit 04ce4df348
19 changed files with 152 additions and 129 deletions

View File

@@ -63,6 +63,10 @@ export class BlockService extends BaseService<Block, BlockPopulate, BlockFull> {
blocks: BlockFull[],
event: EventWrapper<any, any>,
): Promise<BlockFull | undefined> {
if (!blocks.length) {
return undefined;
}
// Search for block matching a given event
let block: BlockFull | undefined = undefined;
const payload = event.getPayload();

View File

@@ -443,7 +443,7 @@ export class BotService {
});
if (!blocks.length) {
return this.logger.debug('No starting message blocks was found');
this.logger.debug('No starting message blocks was found');
}
// Search for a block match