Skip to content

Commit 4bcc42e

Browse files
authored
debugging (#2022)
1 parent 42d2ce8 commit 4bcc42e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/components/sidebar/linkView/LinkView.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,11 @@ class LinkView extends React.Component<ILinkViewProps, ILinkViewState> {
7171
async componentDidMount() {
7272
this._isMounted = true;
7373
if (this.props.isNewLink) {
74-
await this.initNewLink();
74+
console.log('************ new link ************')
75+
await this.initNewLink()
7576
} else {
76-
await this.initExistingLink();
77+
console.log('************ existing link ************')
78+
await this.initExistingLink()
7779
}
7880
this.props.linkStore!.setIsEditingDisabled(!this.props.isNewLink);
7981
EventListener.on('geometryChange', () => this.props.linkStore!.setIsEditingDisabled(false));
@@ -102,6 +104,9 @@ 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+
108+
console.log('************ initExistingLink ************')
109+
console.log(this.props)
105110
if (startNodeId && endNodeId && transitTypeCode) {
106111
const link = await LinkService.fetchLink(startNodeId, endNodeId, transitTypeCode);
107112
if (!link) {

0 commit comments

Comments
 (0)