Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronPlave committed Nov 13, 2024
1 parent 45d1a48 commit ea414fe
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/model/ModelForm.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@
</Input>
<Input layout="inline">
<label for="view">Default View</label>
<select class="st-select" bind:value={viewId}>
<select name="view" class="st-select w-100" bind:value={viewId}>
<option value={null}>None</option>
{#each views as viewOption}
<option value={viewOption.id}>{viewOption.name} (ID: {viewOption.id})</option>
Expand Down
1 change: 1 addition & 0 deletions src/components/plan/PlanMergeReview.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ const mockInitialPlan: Plan = {
model: {
constraint_specification: [],
created_at: '2023-02-16T00:00:00',
default_view_id: 0,
id: 1,
jar_id: 1,
mission: '',
Expand Down
2 changes: 1 addition & 1 deletion src/utilities/effects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1097,7 +1097,7 @@ const effects = {
const { createModel } = data;
if (createModel != null) {
const { id, created_at, owner } = createModel;
const model: ModelSlim = {
const model: Omit<ModelSlim, 'view'> = {
created_at,
id,
jar_id,
Expand Down
3 changes: 3 additions & 0 deletions src/utilities/plan.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ describe('Plan utility', () => {
model: {
constraint_specification: [],
created_at: '2024-01-01T00:00:00',
default_view_id: 0,
id: 1,
jar_id: 123,
mission: 'Test',
Expand Down Expand Up @@ -227,6 +228,7 @@ describe('Plan utility', () => {
model: {
constraint_specification: [],
created_at: '2024-01-01T00:00:00',
default_view_id: 0,
id: 1,
jar_id: 123,
mission: 'Test',
Expand Down Expand Up @@ -335,6 +337,7 @@ describe('Plan utility', () => {
model: {
constraint_specification: [],
created_at: '2024-01-01T00:00:00',
default_view_id: 0,
id: 1,
jar_id: 123,
mission: 'Test',
Expand Down

0 comments on commit ea414fe

Please sign in to comment.