Skip to content

Commit

Permalink
subset plugin: fallback if unit cannot be found
Browse files Browse the repository at this point in the history
* introduced by spacetelescope#2127: spatial subsets crashed when trying to display the unit in the subset plugin, this now implements a fallback to not show the unit suffix
  • Loading branch information
kecnry committed Jun 13, 2023
1 parent 2154035 commit f6afd62
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
v-model.number="item.value"
type="number"
style="padding-top: 0px; margin-top: 0px"
:suffix="item.unit.replace('Angstrom', 'A')"
:suffix="item.unit ? item.unit.replace('Angstrom', 'A') : ''"
></v-text-field>
</v-row>
</div>
Expand Down

0 comments on commit f6afd62

Please sign in to comment.