Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
/// <summary>
/// Gets the service used to interact with the Synapse API
/// </summary>
protected ISynapseApiClient Api { get; } = api;

Check warning on line 68 in src/dashboard/Synapse.Dashboard/Pages/Workflows/Create/Store.cs

View workflow job for this annotation

GitHub Actions / build (9.0.x)

Parameter 'ISynapseApiClient api' is captured into the state of the enclosing type and its value is also used to initialize a field, property, or event.

Check warning on line 68 in src/dashboard/Synapse.Dashboard/Pages/Workflows/Create/Store.cs

View workflow job for this annotation

GitHub Actions / build (9.0.x)

Parameter 'ISynapseApiClient api' is captured into the state of the enclosing type and its value is also used to initialize a field, property, or event.

/// <summary>
/// Gets the service used to help handling Monaco editors
Expand Down Expand Up @@ -698,9 +698,8 @@
string document = "";
if (definition != null)
{
document = MonacoEditorHelper.PreferredLanguage == PreferredLanguage.JSON ?
JsonSerializer.SerializeToText(definition) :
YamlSerializer.SerializeToText(definition);
document = JsonSerializer.SerializeToText(definition);
if (MonacoEditorHelper.PreferredLanguage == PreferredLanguage.YAML) document = YamlSerializer.ConvertFromJson(document);
}
Reduce(state => state with
{
Expand Down