File tree 3 files changed +14
-9
lines changed
frontend/app/components/UsabilityTesting
3 files changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ function TestEdit() {
51
51
usePageTitle ( `Usability Tests | ${ uxtestingStore . instance ? 'Edit' : 'Create' } ` ) ;
52
52
53
53
React . useEffect ( ( ) => {
54
- if ( siteId !== uxtestingStore . instanceCreationSiteId ) {
54
+ if ( uxtestingStore . instanceCreationSiteId && siteId !== uxtestingStore . instanceCreationSiteId ) {
55
55
history . push ( withSiteId ( usabilityTesting ( ) , siteId ) ) ;
56
56
}
57
57
} , [ siteId ] ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @openreplay/tracker" ,
3
3
"description" : " The OpenReplay tracker main package" ,
4
- "version" : " 11.0.2-13 " ,
4
+ "version" : " 11.0.2-15 " ,
5
5
"keywords" : [
6
6
" logging" ,
7
7
" replay"
Original file line number Diff line number Diff line change @@ -737,13 +737,18 @@ export default class App {
737
737
}
738
738
}
739
739
740
- if ( uxtId && ! this . uxtManager . isActive ) {
741
- // eslint-disable-next-line
742
- this . uxtManager . getTest ( uxtId , token , Boolean ( savedUxtTag ) ) . then ( ( id ) => {
743
- if ( id ) {
744
- this . onUxtCb . forEach ( ( cb : ( id : number ) => void ) => cb ( id ) )
745
- }
746
- } )
740
+ if ( uxtId ) {
741
+ if ( ! this . uxtManager . isActive ) {
742
+ // eslint-disable-next-line
743
+ this . uxtManager . getTest ( uxtId , token , Boolean ( savedUxtTag ) ) . then ( ( id ) => {
744
+ if ( id ) {
745
+ this . onUxtCb . forEach ( ( cb : ( id : number ) => void ) => cb ( id ) )
746
+ }
747
+ } )
748
+ } else {
749
+ // @ts -ignore
750
+ this . onUxtCb . forEach ( ( cb : ( id : number ) => void ) => cb ( uxtId ) )
751
+ }
747
752
}
748
753
749
754
return SuccessfulStart ( onStartInfo )
You can’t perform that action at this time.
0 commit comments