File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
src/Altinn.App.Core/Helpers/DataModel
test/Altinn.App.Core.Tests/LayoutExpressions/FullTests Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,9 @@ DataElementIdentifier defaultDataElementIdentifier
7171 $ "{ key . DataType } has maxCount different from 1 in applicationmetadata.json or don't have a classRef in appLogic"
7272 ) ;
7373 }
74- return ( dataElementId , await _dataAccessor . GetFormDataWrapper ( dataElementId ) ) ;
74+ throw new InvalidOperationException (
75+ $ "{ key . DataType } has no classRef in applicationmetadata.json and can't be used as a data model in layouts"
76+ ) ;
7577 }
7678
7779 throw new InvalidOperationException (
Original file line number Diff line number Diff line change 1818using Microsoft . Extensions . DependencyInjection ;
1919using Microsoft . Extensions . Options ;
2020using Moq ;
21- using ProtoBuf . Meta ;
2221using Xunit . Abstractions ;
2322
2423namespace Altinn . App . Core . Tests . LayoutExpressions . FullTests ;
You can’t perform that action at this time.
0 commit comments