File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -73,13 +73,14 @@ export class RepositoryFactoryHttp implements RepositoryFactory {
73
73
* @param configs optional repository factory configs
74
74
*/
75
75
constructor ( url : string , configs ?: RepositoryFactoryConfig ) {
76
- const networkRepo = this . createNetworkRepository ( ) ;
77
76
this . url = url ;
78
77
this . fetchApi = configs ?. fetchApi ;
79
- this . networkType = configs ?. networkType ? observableOf ( configs . networkType ) : networkRepo . getNetworkType ( ) . pipe ( shareReplay ( 1 ) ) ;
78
+ this . networkType = configs ?. networkType
79
+ ? observableOf ( configs . networkType )
80
+ : this . createNetworkRepository ( ) . getNetworkType ( ) . pipe ( shareReplay ( 1 ) ) ;
80
81
this . epochAdjustment = configs ?. epochAdjustment
81
82
? observableOf ( configs . epochAdjustment )
82
- : networkRepo
83
+ : this . createNetworkRepository ( )
83
84
. getNetworkProperties ( )
84
85
. pipe (
85
86
map ( ( property ) => {
You can’t perform that action at this time.
0 commit comments