Skip to content

Commit

Permalink
Merge pull request #184 from Lombiq/issue/LMBQ-363
Browse files Browse the repository at this point in the history
LMBQ-363: Fixing InvalidOperationException during O1 recipe conversion
  • Loading branch information
DemeSzabolcs authored Oct 21, 2024
2 parents ae4488a + bd04b1c commit 41923cb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ await _contentConverters
}

var recipe = JObject.FromObject(new RecipeDescriptor())!;
recipe["steps"] = JObject.FromObject(new[] { new { name = "content", data = contentItems } });
recipe["steps"] = new JsonArray(JObject.FromObject(new { name = "content", data = contentItems }));

return recipe.ToString();
}
Expand Down

0 comments on commit 41923cb

Please sign in to comment.