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 2e3a191 commit 4815c4aCopy full SHA for 4815c4a
web_src/js/features/repo-home.js
@@ -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