Replace shouldSyncNameAndLabel with isLabelSyncedWithName (#8067)
For consistency. This was not deployed yet so allowing myself just to rename everything, meaning developers will need to reset their db.
This commit is contained in:
@ -14,7 +14,7 @@ describe('settingsCreateObjectInputSchema', () => {
|
||||
labelSingular: 'Label ',
|
||||
namePlural: 'namePlural',
|
||||
nameSingular: 'nameSingular',
|
||||
shouldSyncLabelAndName: false,
|
||||
isLabelSyncedWithName: false,
|
||||
};
|
||||
|
||||
// When
|
||||
@ -29,7 +29,7 @@ describe('settingsCreateObjectInputSchema', () => {
|
||||
labelSingular: 'Label',
|
||||
namePlural: 'namePlural',
|
||||
nameSingular: 'nameSingular',
|
||||
shouldSyncLabelAndName: false,
|
||||
isLabelSyncedWithName: false,
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@ -12,6 +12,6 @@ export const settingsCreateObjectInputSchema =
|
||||
namePlural:
|
||||
values.namePlural ??
|
||||
computeMetadataNameFromLabelOrThrow(values.labelPlural),
|
||||
shouldSyncLabelAndName: values.shouldSyncLabelAndName ?? true,
|
||||
isLabelSyncedWithName: values.isLabelSyncedWithName ?? true,
|
||||
}),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user