From e33ebe0b4ee09e4e48f256ca69a8e6d20d2050b4 Mon Sep 17 00:00:00 2001 From: Jeremy Valentine <38669521+valentine195@users.noreply.github.com> Date: Wed, 25 Sep 2024 17:33:03 -0400 Subject: [PATCH] fix: Fixes minor issue in data file update from < v11.2 --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 21a1058..f2dda35 100644 --- a/src/main.ts +++ b/src/main.ts @@ -139,7 +139,7 @@ export default class DiceRollerPlugin extends Plugin { if (typeof data.version !== "string") { delete data.version; } - if (compare("11.2.0", data.version ?? "0.0.0", ">")) { + if (compare("11.2.0", data.version ?? "0.0.0", ">") && !("position" in data)) { data.position = data.showDice ? ButtonPosition.RIGHT : ButtonPosition.NONE;