Bit of type cleanup when debugging

This commit is contained in:
Eli Ribble 2026-04-13 15:16:22 +00:00
parent 756cc0d266
commit 447ea18d95
No known key found for this signature in database
2 changed files with 5 additions and 4 deletions

View file

@ -30,7 +30,7 @@
import { computed, ref } from "vue";
import { router } from "@/rmo/router";
import type { District, PublicReport } from "@/type/api";
import type { District, PublicReportCompliance } from "@/type/api";
import HeaderCompliance from "@/rmo/components/HeaderCompliance.vue";
import ProgressBarCompliance from "@/rmo/components/ProgressBarCompliance.vue";
import AddressAndMapLocator from "@/rmo/components/AddressAndMapLocator.vue";
@ -38,11 +38,11 @@ import { Camera } from "@/type/map";
interface Emits {
(e: "doAddress"): void;
(e: "update:modelValue", value: PublicReport): void;
(e: "update:modelValue", value: PublicReportCompliance): void;
}
interface Props {
district: District;
modelValue: PublicReport;
modelValue: PublicReportCompliance;
}
const emit = defineEmits<Emits>();
const error = ref<string>("");

View file

@ -158,7 +158,8 @@ async function fetchExistingReport(report_uri: string) {
return;
}
const body = await resp.json();
report.value = body;
Object.assign(report.value, body);
console.log("fetched existing report", report.value);
isLoading.value = false;
}
async function updateReport(updates: ComplianceUpdate) {