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 d6d3c96 commit 2e12343Copy full SHA for 2e12343
web_src/js/features/repo-home.ts
@@ -60,7 +60,7 @@ export function initRepoTopicBar() {
60
// how to test: input topic like " invalid topic " (with spaces), and select it from the list, then "Save"
61
const responseData = await response.json();
62
lastErrorToast = showErrorToast(responseData.message, {duration: 5000});
63
- if (responseData.invalidTopics.length > 0) {
+ if (responseData.invalidTopics && responseData.invalidTopics.length > 0) {
64
const {invalidTopics} = responseData;
65
const topicLabels = queryElemChildren(topicDropdown, 'a.ui.label');
66
for (const [index, value] of topics.split(',').entries()) {
0 commit comments