File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
libs/observable-api/states
packages/block/block-list/property-editors/block-list-editor Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ export class UmbArrayState<T> extends UmbDeepState<T[]> {
35
35
*/
36
36
sortBy ( sortMethod ?: ( a : T , b : T ) => number ) {
37
37
this . #sortMethod = sortMethod ;
38
- super . setValue ( this . getValue ( ) . sort ( this . #sortMethod) ) ;
38
+ super . setValue ( [ ... this . getValue ( ) ] . sort ( this . #sortMethod) ) ;
39
39
return this ;
40
40
}
41
41
@@ -51,7 +51,7 @@ export class UmbArrayState<T> extends UmbDeepState<T[]> {
51
51
*/
52
52
override setValue ( value : T [ ] ) {
53
53
if ( this . #sortMethod) {
54
- super . setValue ( value . sort ( this . #sortMethod) ) ;
54
+ super . setValue ( [ ... value ] . sort ( this . #sortMethod) ) ;
55
55
} else {
56
56
super . setValue ( value ) ;
57
57
}
Original file line number Diff line number Diff line change 1
- import { manifest as blockListSchemaManifest } from './Umbraco.BlockList.js' ;
2
1
import type { ManifestTypes } from '@umbraco-cms/backoffice/extension-registry' ;
2
+ import { manifest as blockListSchemaManifest } from './Umbraco.BlockList.js' ;
3
3
4
4
export const UMB_BLOCK_LIST_PROPERTY_EDITOR_ALIAS = 'Umbraco.BlockList' ;
5
5
You can’t perform that action at this time.
0 commit comments