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 {
7373 * @param configs optional repository factory configs
7474 */
7575 constructor ( url : string , configs ?: RepositoryFactoryConfig ) {
76- const networkRepo = this . createNetworkRepository ( ) ;
7776 this . url = url ;
7877 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 ) ) ;
8081 this . epochAdjustment = configs ?. epochAdjustment
8182 ? observableOf ( configs . epochAdjustment )
82- : networkRepo
83+ : this . createNetworkRepository ( )
8384 . getNetworkProperties ( )
8485 . pipe (
8586 map ( ( property ) => {
You can’t perform that action at this time.
0 commit comments