Various fixes on core views (#14093)
- Fix fragments - Add id to create inputs - Refresh core views - Fix kanban loading - Fix core views creation from current view --------- Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
+13
-6
@@ -104,7 +104,7 @@ export class DevSeederMetadataService {
|
||||
});
|
||||
}
|
||||
|
||||
await this.seedCoreViews(workspaceId);
|
||||
await this.seedCoreViews({ workspaceId, dataSourceMetadata });
|
||||
}
|
||||
|
||||
private async seedCustomObject({
|
||||
@@ -152,14 +152,21 @@ export class DevSeederMetadataService {
|
||||
);
|
||||
}
|
||||
|
||||
private async seedCoreViews(workspaceId: string): Promise<void> {
|
||||
private async seedCoreViews({
|
||||
workspaceId,
|
||||
dataSourceMetadata,
|
||||
}: {
|
||||
workspaceId: string;
|
||||
dataSourceMetadata: DataSourceEntity;
|
||||
}): Promise<void> {
|
||||
const createdObjectMetadata =
|
||||
await this.objectMetadataService.findManyWithinWorkspace(workspaceId);
|
||||
|
||||
await prefillCoreViews(
|
||||
this.coreDataSource,
|
||||
await prefillCoreViews({
|
||||
coreDataSource: this.coreDataSource,
|
||||
workspaceId,
|
||||
createdObjectMetadata,
|
||||
);
|
||||
objectMetadataItems: createdObjectMetadata,
|
||||
schemaName: dataSourceMetadata.schema,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user