fix: wrong position moving elements outside folder

This commit is contained in:
Fabio Di Stasio 2022-11-28 09:42:18 +01:00
parent 212b2bdba9
commit 7af178a1e4
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ export const useConnectionsStore = defineStore('connections', {
name: conn.name
});
connIndex = connections.findIndex(conn => conn.uid === el.uid);
connIndex = connections.findIndex((conn, i) => conn.uid === el.uid && i !== el.index);
connections.splice(connIndex, 1);// Delete old object
});
}