Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
arkadius committed Dec 17, 2024
1 parent a1d0441 commit 280f718
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package pl.touk.nussknacker.ui

import cats.effect.{IO, Resource}
import com.typesafe.config.{Config, ConfigFactory}
import com.typesafe.config.{Config, ConfigFactory, ConfigValue, ConfigValueFactory}
import org.apache.commons.io.FileUtils
import pl.touk.nussknacker.engine.{DeploymentManagerProvider, ModelData}
import pl.touk.nussknacker.ui.config.DesignerConfigLoader
Expand Down Expand Up @@ -49,7 +49,10 @@ object LocalNussknackerWithSingleModel {
modelData = Map(typeName -> (category, modelData)),
deploymentManagerProvider = deploymentManagerProvider
)
val designerConfigLoader = DesignerConfigLoader.fromConfig(appConfig)
val designerConfigLoader = DesignerConfigLoader.fromConfig(
// This map is ignored but must exist
appConfig.withValue("scenarioTypes", ConfigValueFactory.fromMap(Map.empty[String, ConfigValue].asJava))
)
val appFactory = new NussknackerAppFactory(
designerConfigLoader,
_ => local
Expand Down

0 comments on commit 280f718

Please sign in to comment.