Skip to content

Commit

Permalink
Make sure we compare 2 numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
felipeelia committed Dec 11, 2024
1 parent 6bc7822 commit a902b3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/ordering/pointers.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ export class Pointers extends Component {

items.forEach((item, index) => {
// Reordering an existing pointer or adding a default post to the pointers array
if (item.order || item.ID === result.draggableId) {
if (item.order || Number(item.ID) === Number(result.draggableId)) {
pointers.push({
ID: item.ID,
order: index + 1,
Expand Down

0 comments on commit a902b3a

Please sign in to comment.