Skip to content

Commit

Permalink
Update web_src/js/features/repo-projects.js
Browse files Browse the repository at this point in the history
  • Loading branch information
silverwind authored Mar 18, 2024
1 parent 92ec5a5 commit 74466cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web_src/js/features/repo-projects.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ async function initRepoProjectSortable() {
onMove: (e) => {
// prevent dropping onto column 0 because it currently can not be moved and doing
// so would raise a 500 "project board does not exist" error on backend.
if (e.related.getAttribute('data-id') === '0') return false;
if (e.related?.getAttribute('data-id') === '0') return false;
},
onSort: async () => {
boardColumns = mainBoard.getElementsByClassName('project-column');
Expand Down

0 comments on commit 74466cf

Please sign in to comment.