Skip to content

Commit b2bd889

Browse files
authored
debugging links (#2015)
* debugging links * formatting
1 parent 1d4e403 commit b2bd889

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/sidebar/linkView/LinkView.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,10 @@ class LinkView extends React.Component<ILinkViewProps, ILinkViewState> {
7171
async componentDidMount() {
7272
this._isMounted = true
7373
if (this.props.isNewLink) {
74+
console.log('************ new link ************')
7475
await this.initNewLink()
7576
} else {
77+
console.log('************ existing link ************')
7678
await this.initExistingLink()
7779
}
7880
this.props.linkStore!.setIsEditingDisabled(!this.props.isNewLink)
@@ -102,6 +104,8 @@ class LinkView extends React.Component<ILinkViewProps, ILinkViewState> {
102104
this.props.linkStore!.clear()
103105

104106
const [startNodeId, endNodeId, transitTypeCode] = this.props.match!.params.id.split(',')
107+
console.log('************ initExistingLink ************')
108+
console.log(this.props)
105109
if (startNodeId && endNodeId && transitTypeCode) {
106110
const link = await LinkService.fetchLink(startNodeId, endNodeId, transitTypeCode)
107111
if (!link) {

0 commit comments

Comments
 (0)