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 056a9a7 commit ee28d2fCopy full SHA for ee28d2f
web_src/js/features/repo-settings-branches.ts
@@ -12,15 +12,15 @@ export function initRepoBranchesSettings() {
12
13
onEnd: () => {
14
(async () => {
15
- const newOrder = Array.from(protectedBranchesList.children, (item) => {
+ const itemIds = Array.from(protectedBranchesList.children, (item) => {
16
const id = item.getAttribute('data-id');
17
return parseInt(id);
18
- }).filter((id) => !Number.isNaN(id));
+ });
19
20
try {
21
await POST(protectedBranchesList.getAttribute('data-update-priority-url'), {
22
data: {
23
- ids: newOrder,
+ ids: itemIds,
24
},
25
});
26
} catch (err) {
0 commit comments