Skip to content

Commit

Permalink
Merge pull request #377 from SCIInstitute/fix-tabform-typeerrors
Browse files Browse the repository at this point in the history
FIx Type errors in TabForm.vue
  • Loading branch information
JakeWags authored May 8, 2024
2 parents cae1cfe + f005799 commit 107a030
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/shapeworks/src/components/TabForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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]) => {
Expand Down

0 comments on commit 107a030

Please sign in to comment.