Skip to content

Commit

Permalink
Set size for new viewField
Browse files Browse the repository at this point in the history
  • Loading branch information
ijreilly committed Jul 30, 2024
1 parent d94a64d commit 09cbdb0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ export class MigrateDomainNameFromTextToLinksCommand extends CommandRunner {
},
[],
),
size: 150,
});

// Delete initial domainName text field
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@ export class ViewService {
fieldId,
viewsIds,
positions,
size,
}: {
workspaceId: string;
fieldId: string;
viewsIds: string[];
positions?: {
[key: string]: number;
}[];
size?: number;
}) {
const viewFieldRepository =
await this.twentyORMGlobalManager.getRepositoryForWorkspace(
Expand Down Expand Up @@ -51,6 +53,7 @@ export class ViewService {
fieldMetadataId: fieldId,
isVisible: true,
...(isDefined(position) && { position: position }),
...(isDefined(size) && { size: size }),
});

await viewFieldRepository.save(newViewField);
Expand Down

0 comments on commit 09cbdb0

Please sign in to comment.