Pfade Automatisch erstellen

This commit is contained in:
Moritz Utcke
2025-02-22 13:28:12 +11:00
parent a40a809e12
commit 57c05b8672
5 changed files with 12 additions and 12 deletions

View File

@@ -12,7 +12,7 @@
export let ausweis: VerbrauchsausweisWohnenClient | VerbrauchsausweisGewerbeClient | BedarfsausweisWohnenClient | GEGNachweisWohnenClient;
export let bilder: UploadedGebaeudeBild[];
export let unterlagen: UnterlageClient[];
export let unterlagen: UnterlageClient[] = [];
export let user: BenutzerClient;
export let objekt: ObjektClient;
export let aufnahme: AufnahmeClient;

View File

@@ -4,7 +4,7 @@
import Inputlabel from "#components/labels/InputLabel.svelte";
import ZipSearch from "#components/PlzSuche.svelte";
import { Enums } from "#lib/client/prisma"
import { Enums } from "#lib/client/prisma.js"
import { AufnahmeClient, ObjektClient } from "./types.js";
export let aufnahme: AufnahmeClient;

View File

@@ -62,8 +62,8 @@
fuelMap[fuel[0]].push(fuel[1]);
}
let month = moment(ausweis.startdatum).month();
let year = moment(ausweis.startdatum).year();
let month = availableDates[availableDates.length - 1].month;
let year = availableDates[availableDates.length - 1].year;
$: {
if (typeof month === "number" && typeof year === "number") {