Skip to content

Commit 018c856

Browse files
Fixed minor bugs in the samples and reverted icon location change
1 parent d2716fe commit 018c856

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

samples/MiniExcel.Samples.Blazor/Components/Pages/Home.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<InputText ValueExpression="@(() => p.Name)" Value="@p.Name" ValueChanged="@(n => p.Name = n)" />
3434
</td>
3535
<td>
36-
<InputText ValueExpression="@(() => p.Surname)" Value="@p.Surname" ValueChanged="@(s => p.Name = s)" />
36+
<InputText ValueExpression="@(() => p.Surname)" Value="@p.Surname" ValueChanged="@(s => p.Surname = s)" />
3737
</td>
3838
<td>
3939
<InputNumber TValue="int" min="0" ValueExpression="@(() => p.Age)" Value="p.Age" ValueChanged="@(a => p.Age = a)" />

samples/MiniExcel.Samples.MinimalApis/Endpoints.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ internal static RouteGroupBuilder MapExcelApi(this IEndpointRouteBuilder builder
1818
group.MapExportExcel();
1919
group.MapApplyExcelTemplate();
2020

21-
return group;
21+
return group.DisableAntiforgery();
2222
}
2323

2424
private static RouteHandlerBuilder MapExportExcel(this IEndpointRouteBuilder builder)
@@ -72,7 +72,7 @@ private static RouteHandlerBuilder MapApplyExcelTemplate(this IEndpointRouteBuil
7272

7373
private static RouteHandlerBuilder MapImportExcel(this IEndpointRouteBuilder builder)
7474
{
75-
return builder.MapPost("import", async ([FromBody] IFormFile file) =>
75+
return builder.MapPost("import", async (IFormFile file) =>
7676
{
7777
var stream = new MemoryStream();
7878
await file.CopyToAsync(stream);
File renamed without changes.

0 commit comments

Comments
 (0)