File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/packages/core/resources Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import { UmbContextConsumerController } from '@umbraco-cms/backoffice/context-ap
8
8
import { UMB_NOTIFICATION_CONTEXT , type UmbNotificationOptions } from '@umbraco-cms/backoffice/notification' ;
9
9
import type { UmbDataSourceResponse } from '@umbraco-cms/backoffice/repository' ;
10
10
11
- export type ErrorMessageText = { category : string ; messages : string [ ] } ;
11
+ export type ErrorMessageText = { property : string ; messages : string [ ] } ;
12
12
13
13
export class UmbResourceController extends UmbControllerBase {
14
14
#promise: Promise < any > ;
@@ -43,7 +43,7 @@ export class UmbResourceController extends UmbControllerBase {
43
43
if ( ! error ) return undefined ;
44
44
if ( typeof error !== 'object' ) return undefined ;
45
45
46
- const entries : Array < Record < string , any > > = [ ] ;
46
+ const entries : Array < ErrorMessageText > = [ ] ;
47
47
Object . entries ( error ) . forEach ( ( [ property , message ] ) => {
48
48
entries . push ( { property, messages : Array . isArray ( message ) ? message : [ message ] } ) ;
49
49
} ) ;
You can’t perform that action at this time.
0 commit comments