Skip to content

Commit

Permalink
Merge pull request #16 from EasyAbp/fix-available-values-splitting
Browse files Browse the repository at this point in the history
Fix `AvailableValues` string splitting
  • Loading branch information
gdlcf88 authored Oct 1, 2024
2 parents 22e1dab + 0d22a4e commit 78a9c37
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion common.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<LangVersion>latest</LangVersion>
<Version>2.0.0-preview.1</Version>
<Version>2.0.0-preview.2</Version>
<NoWarn>$(NoWarn);CS1591;CS0436</NoWarn>
<AbpProjectType>module</AbpProjectType>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public virtual async Task<IActionResult> OnPostAsync()
Type = ViewModel.Type,
Optional = ViewModel.Optional,
Configurations = ViewModel.Configurations,
AvailableValues = new AvailableValues(ViewModel.AvailableValues.Split(',')),
AvailableValues = new AvailableValues((ViewModel.AvailableValues ?? "").Split(',')),
DisplayOrder = ViewModel.DisplayOrder,
Disabled = ViewModel.Disabled
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public virtual async Task<IActionResult> OnPostAsync()
Type = ViewModel.Type,
Optional = ViewModel.Optional,
Configurations = ViewModel.Configurations,
AvailableValues = new AvailableValues(ViewModel.AvailableValues.Split(',')),
AvailableValues = new AvailableValues((ViewModel.AvailableValues ?? "").Split(',')),
DisplayOrder = ViewModel.DisplayOrder,
Disabled = ViewModel.Disabled
};
Expand Down

0 comments on commit 78a9c37

Please sign in to comment.