|
|
@@ -622,10 +622,10 @@ document.addEventListener("alpine:init", () => {
|
|
|
|
|
|
const topPosition = this.findTopPosition(playlistName);
|
|
|
|
|
|
- if (index === topPosition) return;
|
|
|
+ if (index === topPosition + 1) return;
|
|
|
|
|
|
const video = playlist.splice(index, 1)[0];
|
|
|
- playlist.splice(topPosition, 0, video);
|
|
|
+ playlist.splice(topPosition + 1, 0, video);
|
|
|
|
|
|
const updatedPlaylists = {
|
|
|
...playlists,
|
|
|
@@ -945,7 +945,7 @@ document.addEventListener("alpine:init", () => {
|
|
|
const index = parseInt(this.$el.dataset.playlistIndex);
|
|
|
const playlistName = this.$el.dataset.playlistName;
|
|
|
const topPosition = this.findTopPosition(playlistName);
|
|
|
- return index === topPosition;
|
|
|
+ return index === topPosition + 1;
|
|
|
},
|
|
|
},
|
|
|
|