From bd815c9c86748fd707adca3cc3bb24cd32c5a516 Mon Sep 17 00:00:00 2001 From: staviq Date: Thu, 17 Aug 2023 14:29:36 +0000 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Jhen-Jie Hong --- examples/server/public/index.html | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/examples/server/public/index.html b/examples/server/public/index.html index 96eec7594..4984f337b 100644 --- a/examples/server/public/index.html +++ b/examples/server/public/index.html @@ -222,8 +222,7 @@ //override default template savedUserTemplates.value.default = { session: session.value, params: params.value } local_storage_setDataFromObject('user_templates', savedUserTemplates.value) - } - else { + } else { // no saved templates detected. console.log('Initializing LocalStorage and saving default template') @@ -289,8 +288,7 @@ // and load it back and apply userTemplateLoadAndApplyAutosaved() - } - else { + } else { local_storage_setDataFromObject('user_templates_last', { 'name': selectedUserTemplate.value.name, 'data': { 'session': session.value, 'params': params.value } }) } } @@ -469,8 +467,8 @@ } return html` - - ` + + ` }; useEffect(() => {