Skip to content
This repository was archived by the owner on Feb 10, 2024. It is now read-only.

Commit 32460cf

Browse files
Fixed "Current has not been initialized" error
1 parent 2a66125 commit 32460cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Our.Umbraco.DocTypeGridEditor/Web/Mvc/DefaultDocTypeGridEditorSurfaceControllerResolver.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ public class DefaultDocTypeGridEditorSurfaceControllerResolver : SingleObjectRes
1616
/// </summary>
1717
/// <param name="value"></param>
1818
public DefaultDocTypeGridEditorSurfaceControllerResolver(Type value)
19-
: base(value)
19+
: base(value, true)
2020
{
2121
ValidateType(value);
22+
Value = null;
2223
}
2324

2425
/// <summary>

0 commit comments

Comments
 (0)