@@ -64,18 +64,15 @@ class LinkView extends React.Component<ILinkViewProps, ILinkViewState> {
6464
6565 private _setState = ( newState : object ) => {
6666 if ( this . _isMounted ) {
67- console . log ( newState )
6867 this . setState ( newState ) ;
6968 }
7069 } ;
7170
7271 async componentDidMount ( ) {
7372 this . _isMounted = true ;
7473 if ( this . props . isNewLink ) {
75- console . log ( 'new link' )
7674 await this . initNewLink ( )
7775 } else {
78- console . log ( 'existing link' )
7976 await this . initExistingLink ( )
8077 }
8178 this . props . linkStore ! . setIsEditingDisabled ( ! this . props . isNewLink ) ;
@@ -106,40 +103,31 @@ class LinkView extends React.Component<ILinkViewProps, ILinkViewState> {
106103
107104 const [ startNodeId , endNodeId , transitTypeCode ] = this . props . match ! . params . id . split ( ',' ) ;
108105
109- console . log ( 'initExistingLink' )
110- console . log ( this . props )
111- console . log ( startNodeId , endNodeId , transitTypeCode )
112106 if ( startNodeId && endNodeId && transitTypeCode ) {
113107 const link = await LinkService . fetchLink ( startNodeId , endNodeId , transitTypeCode ) ;
114- console . log ( link )
115108 if ( ! link ) {
116109 this . props . errorStore ! . addError (
117110 `Haku löytää linkki (alkusolmu ${ startNodeId } , loppusolmu ${ endNodeId } , verkko ${ transitTypeCode } ) ei onnistunut.`
118111 ) ;
119112 const homeViewLink = routeBuilder . to ( SubSites . home ) . toLink ( ) ;
120- console . log ( homeViewLink )
121113 navigator . goTo ( { link : homeViewLink } ) ;
122114 return ;
123115 }
124116 this . centerMapToLink ( link ) ;
125- console . log ( 'linkstore init' )
126117 this . props . linkStore ! . init ( {
127118 link,
128119 nodes : [ link . startNode , link . endNode ] ,
129120 isNewLink : false ,
130121 } ) ;
131- console . log ( 'setIsLinkGeometryEditable' )
132122 this . props . linkStore ! . setIsLinkGeometryEditable ( true ) ;
133123 const bounds = L . latLngBounds ( link . geometry ) ;
134124 this . props . mapStore ! . setMapBounds ( bounds ) ;
135125
136- console . log ( link . geometry )
137126 const routePaths : IRoutePathWithDisabledInfo [ ] = await RoutePathService . fetchRoutePathsUsingLink (
138127 link . startNode . id ,
139128 link . endNode . id ,
140129 link . transitType !
141130 ) ;
142- console . log ( routePaths )
143131 this . _setState ( { routePathsUsingLink : routePaths } ) ;
144132 }
145133 this . _setState ( { isLoading : false } ) ;
0 commit comments