From 6a0e4c6e5639728e50df2bd2104584877f3f9abd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Thu, 19 May 2022 15:40:37 +0200 Subject: [PATCH] Web: cleanup, simplify `plain(x)` function a bit --- web/app/src/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/app/src/main.js b/web/app/src/main.js index c255705b..d0bf5458 100644 --- a/web/app/src/main.js +++ b/web/app/src/main.js @@ -9,8 +9,8 @@ import router from '@/router/index' import { DateTime } from 'luxon'; window.DateTime = DateTime; -// This removes any Vue reactivity. -window.plain = (x) => { return JSON.parse(JSON.stringify(x)) }; +// plain removes any Vue reactivity. +window.plain = (x) => JSON.parse(JSON.stringify(x)); const app = createApp(App) const pinia = createPinia()