From e3cda2fdfa653423588ef432f1ad546495c9127a Mon Sep 17 00:00:00 2001 From: Made Baruna Date: Sat, 17 Dec 2022 01:33:44 +0800 Subject: [PATCH] Temporary fix for todo crashing caused by redcrest renamed to henna berry --- src/routes/todo.svelte | 31 ++++++++++++++++++++++++++----- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/src/routes/todo.svelte b/src/routes/todo.svelte index 18e85ad5..e4091631 100644 --- a/src/routes/todo.svelte +++ b/src/routes/todo.svelte @@ -6,7 +6,7 @@ import { mdiChevronDown, mdiChevronLeft, mdiChevronRight, mdiClose, mdiInformation, mdiLoading } from '@mdi/js'; import { todos, loading } from '../stores/todo'; import { ar, wl } from '../stores/server'; - import { itemList } from '../data/itemList'; + import { itemList as itemListData } from '../data/itemList'; import Masonry from '../components/Masonry.svelte'; import Icon from '../components/Icon.svelte'; import Button from '../components/Button.svelte'; @@ -17,6 +17,11 @@ const { open: openModal, close: closeModal } = getContext('simple-modal'); + const itemList = { + ...itemListData, + redcrest: { id: 'henna_berry', name: 'Henna Berry' }, + }; + let refreshLayout; let columnCount = 1; let numberFormat = Intl.NumberFormat(); @@ -311,7 +316,11 @@ - {itemList[id].name} + {itemList[id].name} {itemList[id].name} @@ -347,7 +356,11 @@ - {itemList[id].name} + {itemList[id].name} {itemGroup[id].name} @@ -382,7 +395,11 @@ - {itemList[id].name} + {itemList[id].name} {itemList[id].name} @@ -467,7 +484,11 @@ - {itemList[id].name} + {itemList[id].name} {itemList[id].name}