From f005799a26d3243f88ed7a25e4be1dc9f64ea7e5 Mon Sep 17 00:00:00 2001 From: Jake Wagoner Date: Wed, 8 May 2024 12:15:02 -0600 Subject: [PATCH] FIx Type errors in TabForm.vue --- web/shapeworks/src/components/TabForm.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/shapeworks/src/components/TabForm.vue b/web/shapeworks/src/components/TabForm.vue index 78603e0f..938f2396 100644 --- a/web/shapeworks/src/components/TabForm.vue +++ b/web/shapeworks/src/components/TabForm.vue @@ -60,13 +60,13 @@ export default { const section = file_contents[props.form] if (section && props.form === 'groom') { // section organized by anatomies, pick first - const data = Object.values(section)[0] + const data = Object.values(section)[0] as Object if (data) parseNewDefaults(data) } else if (section && props.form === 'optimize') { parseNewDefaults(section) } formDefaults.value = Object.fromEntries( - Object.entries(formDefaults.value).map(([sName, sData]) => { + Object.entries(formDefaults.value).map(([sName, sData]: [string, any]) => { if (!sData) return [sName, sData] return [sName, Object.fromEntries( Object.entries(sData).map(([key, value]) => {