Skip to content

Commit e5bb37b

Browse files
committed
fix(server): on field update synchronize updates to other relations members accordingly
1 parent 3353e66 commit e5bb37b

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import { FlatFieldMetadata } from 'src/engine/metadata-modules/flat-field-metadata/types/flat-field-metadata.type';
2+
3+
export const FLAT_FIELD_METADATA_MORPH_RELATION_EDITABLE_PROPERTIES_ON_SIBLING_MORPH_RELATION_UPDATE_CONSTANT =
4+
{
5+
custom: [
6+
'defaultValue',
7+
'description',
8+
'icon',
9+
'isActive',
10+
'isLabelSyncedWithName',
11+
'isUnique',
12+
'label',
13+
'options',
14+
],
15+
standard: [
16+
'defaultValue',
17+
'description',
18+
'icon',
19+
'isActive',
20+
'label',
21+
'options',
22+
],
23+
} as const satisfies Record<
24+
'standard' | 'custom',
25+
(keyof FlatFieldMetadata)[]
26+
>;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import { FlatFieldMetadata } from 'src/engine/metadata-modules/flat-field-metadata/types/flat-field-metadata.type';
2+
3+
export const FLAT_FIELD_METADATA_RELATION_EDITABLE_PROPERTIES_ON_SIBLING_MORPH_OR_RELATION_UPDATE_CONSTANT =
4+
['isActive'] as const satisfies (keyof FlatFieldMetadata)[];

0 commit comments

Comments
 (0)