Skip to content

Commit

Permalink
Merge pull request #46 from dynamicweb/frederik5480-patch-1
Browse files Browse the repository at this point in the history
Update ODataWriter.cs
  • Loading branch information
frederik5480 authored Oct 15, 2024
2 parents e019742 + 71b656f commit dbaa347
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Version>10.6.6</Version>
<Version>10.6.7</Version>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<Title>OData Provider</Title>
<Description>The Odata Provider lets you fetch and map data from or to any OData endpoint.</Description>
Expand Down
2 changes: 1 addition & 1 deletion src/ODataWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ internal string MapValuesToJSon(Dictionary<string, object> row, bool isPatchRequ

if (columnMapping.HasScriptWithValue || row.ContainsKey(columnMapping.SourceColumn?.Name))
{
var columnValue = columnMapping.ConvertInputValueToOutputValue(row[columnMapping.SourceColumn?.Name] ?? null);
var columnValue = columnMapping.ConvertInputValueToOutputValue(columnMapping.HasScriptWithValue ? null : row.TryGetValue(columnMapping.SourceColumn?.Name ?? "", out var value) ? value : null);

switch (columnMapping.DestinationColumn.Type.Name.ToLower())
{
Expand Down

0 comments on commit dbaa347

Please sign in to comment.