From 2a5f3243faae9d96568142fa480d80ce87ed39de Mon Sep 17 00:00:00 2001 From: chillbram <7299762+chillbram@users.noreply.github.com> Date: Fri, 6 Mar 2026 20:22:55 +0100 Subject: [PATCH] Fix positioning bug when creating new nodes --- src/Models/Entity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Models/Entity.php b/src/Models/Entity.php index ba96bc3..59ccb40 100644 --- a/src/Models/Entity.php +++ b/src/Models/Entity.php @@ -278,7 +278,7 @@ public static function boot() if ($entity->isDirty($entity->getPositionColumn())) { $latest = static::getLatestPosition($entity); - if (!$entity->isReparenting) { + if (!$entity->isReparenting && $entity->exists) { $latest--; }