Skip to content

Commit 7f290d0

Browse files
committed
Merge branch 'bugfix/import-export-testing' into develop
2 parents d9a0ce8 + d340ded commit 7f290d0

6 files changed

Lines changed: 10 additions & 10 deletions

File tree

OnTopic.Editor.AspNetCore/Components/DefaultAttributeTypeViewComponent.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ namespace OnTopic.Editor.AspNetCore.Components {
2020
/// The <see cref="AttributeTypeViewComponentBase"/> class provides a foundation for all attribute editors. That said, most
2121
/// attribute editors won't need to deliver a custom <see cref="AttributeViewModel"/> or provide any customized logic. For
2222
/// those, the <see cref="DefaultAttributeTypeViewComponent"/> provides a default implementation of the <see
23-
/// cref="InvokeAsync(AttributeDescriptorTopicViewModel, string)"/> method that should satisfy most requirements. It is
23+
/// cref="InvokeAsync(AttributeDescriptorTopicViewModel, String)"/> method that should satisfy most requirements. It is
2424
/// still expected that derived classes be created, but by deriving from <see cref="DefaultAttributeTypeViewComponent"/>,
25-
/// they do not need to implement their own <see cref="InvokeAsync(AttributeDescriptorTopicViewModel, string)"/> method.
25+
/// they do not need to implement their own <see cref="InvokeAsync(AttributeDescriptorTopicViewModel, String)"/> method.
2626
/// </remarks>
2727
public class DefaultAttributeTypeViewComponent : ViewComponent {
2828

OnTopic.Editor.AspNetCore/Controllers/EditorController.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
| Project Topics Library
55
\=============================================================================================================================*/
66
using System;
7-
using System.Collections.Generic;
87
using System.IO;
98
using System.Linq;
109
using System.Text;

OnTopic.Editor.AspNetCore/Models/ContentTypeListViewModel.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
using System.Collections.Generic;
77
using Microsoft.AspNetCore.Mvc.Rendering;
88
using OnTopic.Editor.Models;
9-
using OnTopic.Editor.Models.Metadata;
9+
10+
#nullable enable
1011

1112
namespace OnTopic.Editor.AspNetCore.Models {
1213

@@ -32,7 +33,7 @@ public ContentTypeListViewModel() { }
3233
/// <summary>
3334
/// Provides a reference to the <see cref="EditingTopicViewModel"/> that the user is currently editing.
3435
/// </summary>
35-
public EditingTopicViewModel CurrentTopic { get; set; }
36+
public EditingTopicViewModel? CurrentTopic { get; set; }
3637

3738
/*==========================================================================================================================
3839
| TOPIC LIST
@@ -73,7 +74,9 @@ public ContentTypeListViewModel() { }
7374
/// <summary>
7475
/// If supplied, sets a reference to a callback function to execute on close of the editor modal window.
7576
/// </summary>
76-
public string OnModalClose { get; set; }
77+
public string? OnModalClose { get; set; }
7778

7879
} // Class
7980
} // Namespace
81+
82+
#nullable disable

OnTopic.Editor.Models/AttributeViewModel{T}.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ public AttributeViewModel(
3232
attributeDescriptor
3333
) {
3434
AttributeDescriptor = attributeDescriptor;
35-
Value = value;
36-
InheritedValue = inheritedValue;
35+
Value = value?? Value;
36+
InheritedValue = inheritedValue?? InheritedValue;
3737
}
3838

3939
/*==========================================================================================================================

OnTopic.Editor.Models/Transfer/ExportViewModel.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
| Client Ignia, LLC
44
| Project Topics Library
55
\=============================================================================================================================*/
6-
using OnTopic.Editor.Models.Metadata;
76
using OnTopic.Data.Transfer.Interchange;
87

98
namespace OnTopic.Editor.Models.Transfer {

OnTopic.Editor.Models/Transfer/ImportViewModel.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
| Client Ignia, LLC
44
| Project Topics Library
55
\=============================================================================================================================*/
6-
using OnTopic.Editor.Models.Metadata;
76
using OnTopic.Data.Transfer.Interchange;
87

98
namespace OnTopic.Editor.Models.Transfer {

0 commit comments

Comments
 (0)