Skip to content

Commit aa0c2e7

Browse files
Improved code quality (#361)
1 parent f5a49ff commit aa0c2e7

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

app/MindWork AI Studio/Chat/ContentBlockComponent.razor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ public partial class ContentBlockComponent : ComponentBase
4141
public string Class { get; set; } = string.Empty;
4242

4343
[Parameter]
44-
public bool IsLastContentBlock { get; set; } = false;
44+
public bool IsLastContentBlock { get; set; }
4545

4646
[Parameter]
47-
public bool IsSecondToLastBlock { get; set; } = false;
47+
public bool IsSecondToLastBlock { get; set; }
4848

4949
[Parameter]
5050
public Func<IContent, Task>? RemoveBlockFunc { get; set; }

app/MindWork AI Studio/Components/ChatComponent.razor.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
using AIStudio.Provider;
44
using AIStudio.Settings;
55
using AIStudio.Settings.DataModel;
6-
using AIStudio.Tools.Services;
76

87
using Microsoft.AspNetCore.Components;
98
using Microsoft.AspNetCore.Components.Web;
@@ -41,9 +40,6 @@ public partial class ChatComponent : MSGComponentBase, IAsyncDisposable
4140
[Inject]
4241
private IDialogService DialogService { get; init; } = null!;
4342

44-
[Inject]
45-
private DataSourceService DataSourceService { get; init; } = null!;
46-
4743
private const Placement TOOLBAR_TOOLTIP_PLACEMENT = Placement.Top;
4844
private static readonly Dictionary<string, object?> USER_INPUT_ATTRIBUTES = new();
4945

app/MindWork AI Studio/Components/Workspaces.razor.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ namespace AIStudio.Components;
1313

1414
public partial class Workspaces : ComponentBase
1515
{
16-
[Inject]
17-
private SettingsManager SettingsManager { get; init; } = null!;
18-
1916
[Inject]
2017
private IDialogService DialogService { get; init; } = null!;
2118

0 commit comments

Comments
 (0)