File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,12 +7,11 @@ export const initBgFilter = async (
77 ) : Promise < BackgroundFilter | null > => {
88 if ( effectType && effectType . length > 0 && effectType !== 'none' ) {
99 if ( vidTrack ?. mediaStreamTrack ) {
10- const filter = new BackgroundFilter ( vidTrack . mediaStreamTrack , {
10+ return new BackgroundFilter ( vidTrack . mediaStreamTrack , {
1111 token : 'BG_REMOVAL_TOKEN' ,
1212 background : effectType ,
1313 blurRadius : 6
1414 } ) ;
15- return filter ;
1615 // console.log('bg', bgRemovedTrack);
1716 }
1817 }
Original file line number Diff line number Diff line change @@ -276,6 +276,7 @@ const CatalystChatView = ({
276276 tClasses ?. remove ( 'animate-fade-in-up' ) ;
277277 tClasses ?. add ( 'animate-fade-out-down' ) ;
278278 setTimeout ( ( ) => {
279+ if ( ! isMounted ( ) ) return ;
279280 hClasses ?. remove ( 'animate-fade-out-up' ) ;
280281 hClasses ?. add ( 'hidden' ) ;
281282 tClasses ?. remove ( 'animate-fade-out-down' ) ;
You can’t perform that action at this time.
0 commit comments