elsa-workflows / elsa-workflows/elsa-core
error when rendering conditions made with js in designer
- Dominant language
- C#
- Stars
- 7.9k
- Forks
- 1.5k
- Avg merge
- 15h 22m
- Merged PRs (30d)
- 114
Description

I created the condition of a switch with a variable that I created in an activity previously, the backend works although when I see the instance of the workflow it does not load the activities normally and I get this error

is it possible that some configuration is missing?
My configuration
```sh
services
.AddElsa(elsa => elsa
.UseMongoDbPersistence(options => options.ConnectionString = mongoDbConnectionString)
.AddConsoleActivities()
.AddHttpActivities(elsaSection.GetSection("Http").Bind)
.AddJavaScriptActivities()
.AddEmailActivities(elsaSection.GetSection("Smtp").Bind)
.AddQuartzTemporalActivities()
.AddActivity()
.AddActivity()
.AddActivity()
.AddActivity()
.AddActivity()
.AddActivity()
);
```
Contributor guide
Research direction
The issue names no source files or tests. Reproduce the problem with a switch condition using a variable created by an earlier activity, then inspect the workflow instance designer rendering and the JavaScript activity configuration. Done means the workflow activities load normally without the reported rendering error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100