Skip to content

Commit

Permalink
Merge pull request #207 from jmmerchant/10x-update
Browse files Browse the repository at this point in the history
Prevent obliteration of a folder by trying to move it into itself.
  • Loading branch information
earlSt1 authored Aug 5, 2023
2 parents bd6f83b + 9dfc1b3 commit 07719c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fic-folders.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ export class FICUtils {
static async handleMoveFolderToFolder(data, targetFolderElement) {
const movingFolderId = data.id;
const targetFolderId = targetFolderElement.dataset.folderId;
if (movingFolderId === targetFolderId) return;

let movingFolder = game.customFolders.fic.folders.get(movingFolderId);
let targetFolder = game.customFolders.fic.folders.get(targetFolderId);
Expand Down

0 comments on commit 07719c3

Please sign in to comment.