mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Add system flag to system rows
This commit is contained in:
@@ -6,6 +6,6 @@ const systemData = requireYAML(require.resolve('./collections.yaml'));
|
||||
|
||||
export const systemCollectionRows: CollectionMeta[] = systemData.data.map(
|
||||
(row: Record<string, any>) => {
|
||||
return merge({}, systemData.defaults, row);
|
||||
return merge({ system: true }, systemData.defaults, row);
|
||||
}
|
||||
);
|
||||
|
||||
@@ -15,6 +15,6 @@ for (const filepath of fieldData) {
|
||||
const systemFields = requireYAML(path.resolve(__dirname, filepath));
|
||||
|
||||
for (const field of systemFields.fields) {
|
||||
systemFieldRows.push(merge({}, defaults, field));
|
||||
systemFieldRows.push(merge({ system: true }, defaults, field));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,5 +5,5 @@ import { Relation } from '../../../types';
|
||||
const systemData = requireYAML(require.resolve('./relations.yaml'));
|
||||
|
||||
export const systemRelationRows: Relation[] = systemData.data.map((row: Record<string, any>) => {
|
||||
return merge({}, systemData.defaults, row);
|
||||
return merge({ system: true }, systemData.defaults, row);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user