Chore: fix warnings

This commit is contained in:
Pieter Vander Vennet 2023-06-02 08:42:08 +02:00
parent ab70c6adc0
commit 47ae4cb456
38 changed files with 49 additions and 90 deletions

View file

@ -2,9 +2,7 @@
import {Store, UIEventSource} from "../../Logic/UIEventSource";
import type {RasterLayerPolygon} from "../../Models/RasterLayers";
import {AvailableRasterLayers} from "../../Models/RasterLayers";
import Tr from "../Base/Tr.svelte";
import {createEventDispatcher, onDestroy} from "svelte";
import Translations from "../i18n/Translations";
import Svg from "../../Svg";
import {Map as MlMap} from "maplibre-gl"
import type {MapProperties} from "../../Models/MapProperties";

View file

@ -14,7 +14,6 @@
<script lang="ts">
import {UIEventSource} from "../../Logic/UIEventSource"
import Svg from "../../Svg"
import SubtleButton from "../Base/SubtleButton.svelte"
import ToSvelte from "../Base/ToSvelte.svelte"
import Translations from "../i18n/Translations"
import Tr from "../Base/Tr.svelte";

View file

@ -127,7 +127,7 @@ export class StackedRenderingChart extends ChartJs {
let earliest: Date = undefined
let latest: Date = undefined
let allDates = new Set<string>()
features.forEach((value, key) => {
features.forEach((value) => {
const d = new Date(value.properties.date)
Utils.SetMidnight(d)