Skip to content

Commit

Permalink
Simplify Primal selection in Primals report
Browse files Browse the repository at this point in the history
  • Loading branch information
kirkedev committed Feb 27, 2024
1 parent 1d3252c commit bb8d659
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions app/reports/Primals.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,12 @@

<script lang="ts">
export let cutout: Iterable<Cutout>;
let primal = Primal.Belly;
$: model = PrimalViewModel.from(cutout, primal);
$: model = PrimalViewModel.from(cutout, Primal.Belly);
$: ({ stats, selected } = model);
const select = (selected: Primal) =>
const select = (primal: Primal) =>
function() {
primal = selected;
model = PrimalViewModel.from(cutout, primal);
};
</script>

Expand Down

0 comments on commit bb8d659

Please sign in to comment.