From a4052ffee8bc7c6c8a69eba5120b5c6c2d951b0f Mon Sep 17 00:00:00 2001
From: Leonardo Bishop <me@leonardobishop.com>
Date: Tue, 12 Mar 2024 19:18:52 +0000
Subject: Add items

---
 layouts/editor.vue | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'layouts/editor.vue')

diff --git a/layouts/editor.vue b/layouts/editor.vue
index 884160f..7275651 100644
--- a/layouts/editor.vue
+++ b/layouts/editor.vue
@@ -1,6 +1,6 @@
 <script setup lang="ts">
 import { useSessionStore } from '@/stores/session';
-import { loadQuestsFromJson, loadCategoriesFromJson } from '@/lib/questsLoader';
+import { loadQuestsFromJson, loadCategoriesFromJson, loadItemsFromJson } from '@/lib/questsLoader';
 import testData from '@/data/testData.json';
 import taskDefinitions from '@/data/taskDefinitions.json';
 
@@ -8,9 +8,11 @@ const sessionStore = useSessionStore();
 
 const quests = loadQuestsFromJson(testData.quests);
 const categories = loadCategoriesFromJson(testData.categories);
+const items = loadItemsFromJson(testData.items);
 
 sessionStore.setQuests(quests);
 sessionStore.setCategories(categories);
+sessionStore.setItems(items);
 sessionStore.setTaskDefinitions(taskDefinitions.taskTypes);
 // sessionStore.updateEditorCategories();
 </script>
-- 
cgit v1.2.3-70-g09d2

