From 447ea18d95a0d50422a359ea1a8758cedd417145 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Mon, 13 Apr 2026 15:16:22 +0000 Subject: [PATCH] Bit of type cleanup when debugging --- ts/rmo/content/compliance/Address.vue | 6 +++--- ts/rmo/view/Compliance.vue | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ts/rmo/content/compliance/Address.vue b/ts/rmo/content/compliance/Address.vue index 4d285fb6..7444cecd 100644 --- a/ts/rmo/content/compliance/Address.vue +++ b/ts/rmo/content/compliance/Address.vue @@ -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(); const error = ref(""); diff --git a/ts/rmo/view/Compliance.vue b/ts/rmo/view/Compliance.vue index b4d5f6da..1c826403 100644 --- a/ts/rmo/view/Compliance.vue +++ b/ts/rmo/view/Compliance.vue @@ -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) {