Fix: fix missing param

This commit is contained in:
Pieter Vander Vennet 2025-01-23 15:13:00 +01:00
parent 0897061f27
commit 6fa4323495
2 changed files with 3 additions and 1 deletions

View file

@ -3,7 +3,7 @@ import { MenuState } from "../../Models/MenuState"
import { AndroidPolyfill } from "./AndroidPolyfill" import { AndroidPolyfill } from "./AndroidPolyfill"
import { IndexedFeatureSource } from "../FeatureSource/FeatureSource" import { IndexedFeatureSource } from "../FeatureSource/FeatureSource"
import { Feature } from "geojson" import { Feature } from "geojson"
import { UIEventSource } from "../UIEventSource" import { Store, UIEventSource } from "../UIEventSource"
export default class ThemeViewStateHashActor { export default class ThemeViewStateHashActor {
private readonly _state: { private readonly _state: {
@ -36,6 +36,7 @@ export default class ThemeViewStateHashActor {
* *
*/ */
constructor(state: { constructor(state: {
featureSwitches: {featureSwitchBackToThemeOverview: Store<boolean>}
indexedFeatures: IndexedFeatureSource, indexedFeatures: IndexedFeatureSource,
selectedElement: UIEventSource<Feature>, selectedElement: UIEventSource<Feature>,
guistate: MenuState, guistate: MenuState,

View file

@ -56,6 +56,7 @@ export class WithImageState extends WithGuiState implements SpecialVisualization
private initActors() { private initActors() {
new ThemeViewStateHashActor({ new ThemeViewStateHashActor({
featureSwitches: this.featureSwitches,
selectedElement: this.selectedElement, selectedElement: this.selectedElement,
indexedFeatures: this.indexedFeatures, indexedFeatures: this.indexedFeatures,
guistate: this.guistate guistate: this.guistate