Bit of type cleanup when debugging
This commit is contained in:
parent
756cc0d266
commit
447ea18d95
2 changed files with 5 additions and 4 deletions
|
|
@ -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>("");
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue