We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01eed63 commit ee3aad0Copy full SHA for ee3aad0
src/utils/internalLinks.js
@@ -73,9 +73,9 @@ export const decodeHashComponent = (string: string): string => {
73
const parseStreamOperand = (operand, streamsById, streamsByName): null | Stream => {
74
// "New" (2018) format: ${stream_id}-${stream_name} .
75
const match = /^([\d]+)(?:-.*)?$/.exec(operand);
76
- if (match) {
77
- const streamId = parseInt(match[1], 10);
78
- const stream = streamsById.get(streamId);
+ const newFormatStreamId = match ? parseInt(match[1], 10) : null;
+ if (newFormatStreamId != null) {
+ const stream = streamsById.get(newFormatStreamId);
79
if (stream) {
80
return stream;
81
}
0 commit comments