Skip to content

Commit

Permalink
Merge pull request #4045 from 10up/fix/new-pointers
Browse files Browse the repository at this point in the history
Make sure we compare 2 numbers
  • Loading branch information
felipeelia authored Dec 11, 2024
2 parents 6bc7822 + a902b3a commit 32bb0f5
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 32bb0f5

Please sign in to comment.