From c959a2bba48e93f9334221f677a5e7af4bf13acf Mon Sep 17 00:00:00 2001 From: Untone Date: Tue, 24 Sep 2024 09:51:58 +0300 Subject: [PATCH] fmt --- src/components/Views/EditView/EditView.tsx | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/components/Views/EditView/EditView.tsx b/src/components/Views/EditView/EditView.tsx index cfb1b4d3..751f8182 100644 --- a/src/components/Views/EditView/EditView.tsx +++ b/src/components/Views/EditView/EditView.tsx @@ -1,15 +1,6 @@ import { clsx } from 'clsx' import deepEqual from 'fast-deep-equal' -import { - Show, - createEffect, - createMemo, - createSignal, - lazy, - on, - onCleanup, - onMount -} from 'solid-js' +import { Show, createEffect, createMemo, createSignal, lazy, on, onCleanup, onMount } from 'solid-js' import { createStore } from 'solid-js/store' import { debounce } from 'throttle-debounce' import { DropArea } from '~/components/_shared/DropArea' @@ -99,7 +90,7 @@ export const EditView = (props: Props) => { const stored = getDraftFromLocalStorage(shout.id) if (stored) { // console.info(`[EditView] got stored shout: ${stored}`) - setDraft((old) => ({...old, ...stored} as Shout)) + setDraft((old) => ({ ...old, ...stored }) as Shout) } else { if (!shout.slug) { console.warn(`[EditView] shout has no slug! ${shout}`)