From a902b3a266af1aba4a271f08d1fcba059fec7877 Mon Sep 17 00:00:00 2001 From: Felipe Elia Date: Wed, 11 Dec 2024 11:31:39 -0300 Subject: [PATCH] Make sure we compare 2 numbers --- assets/js/ordering/pointers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/ordering/pointers.js b/assets/js/ordering/pointers.js index 2e9fcab51..5338244f2 100644 --- a/assets/js/ordering/pointers.js +++ b/assets/js/ordering/pointers.js @@ -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,