From 2de41706b559c52260807dcece2b6fa580e6f05f Mon Sep 17 00:00:00 2001 From: Ross Keenan Date: Sat, 29 Jan 2022 08:30:39 +0200 Subject: [PATCH] fix(LimitTrailFields): :bug: New fields were being limited by default --- src/Components/Checkboxes.svelte | 1 - src/Components/UserHierarchies.svelte | 36 +++++++++++++++++++++++++-- 2 files changed, 34 insertions(+), 3 deletions(-) diff --git a/src/Components/Checkboxes.svelte b/src/Components/Checkboxes.svelte index c4b7c640..ff52514c 100644 --- a/src/Components/Checkboxes.svelte +++ b/src/Components/Checkboxes.svelte @@ -10,7 +10,6 @@ let selected = settings[settingName]; - let toNone = selected.length === 0 ? false : true; $: toNone = selected.length === 0 ? false : true; async function save() { diff --git a/src/Components/UserHierarchies.svelte b/src/Components/UserHierarchies.svelte index bf60afef..4791bfd6 100644 --- a/src/Components/UserHierarchies.svelte +++ b/src/Components/UserHierarchies.svelte @@ -10,6 +10,7 @@ import { hierToStr } from "../Utils/HierUtils"; export let plugin: BCPlugin; + const { settings } = plugin; let currHiers = [...plugin.settings.userHiers]; async function update(currHiers: UserHier[]) { @@ -80,7 +81,24 @@