Skip to content

Commit 50756ea

Browse files
authored
Merge pull request #2030 from HSLdevcom/63718-missing-codes
clean up, fix SHORT_ID_OPTIONS_MAP
2 parents 282a37b + 3971c3f commit 50756ea

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/components/sidebar/nodeView/NodeForm.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const SHORT_ID_OPTIONS_MAP = {
4646
93: ['Po'],
4747
94: ['Pn', 'As'],
4848
95: ['Jä'],
49-
96: ['Tu', 'Ke'],
49+
96: ['Tu', 'Nu'],
5050
97: ['Nu'],
5151
98: ['Mä'],
5252
};
@@ -70,13 +70,10 @@ class NodeForm extends Component<INodeFormProps> {
7070

7171
private getShortIdLetterDropdownItems = (nodeId: string) => {
7272
const dropdownItems: IDropdownItem[] = [];
73-
console.log(nodeId)
7473
for (const nodeIdBeginning in SHORT_ID_OPTIONS_MAP) {
75-
console.log(nodeIdBeginning)
7674
if (Object.prototype.hasOwnProperty.call(SHORT_ID_OPTIONS_MAP, nodeIdBeginning)) {
7775
if (nodeId.startsWith(nodeIdBeginning)) {
7876
const nodeIdOptions = SHORT_ID_OPTIONS_MAP[nodeIdBeginning];
79-
console.log(nodeIdOptions)
8077
nodeIdOptions.forEach((nodeIdOption: string) => {
8178
const codeListLabel = this.props.codeListStore!.getCodeListLabel(
8279
'Lyhyttunnus',
@@ -86,13 +83,11 @@ class NodeForm extends Component<INodeFormProps> {
8683
value: nodeIdOption,
8784
label: `${nodeIdOption} - ${codeListLabel}`,
8885
};
89-
console.log(dropdownItem)
9086
dropdownItems.push(dropdownItem);
9187
});
9288
}
9389
}
9490
}
95-
console.log(dropdownItems)
9691
return dropdownItems;
9792
};
9893

0 commit comments

Comments
 (0)