Skip to content

Commit

Permalink
Merge pull request #469 from middlewarehq/GROW-1752
Browse files Browse the repository at this point in the history
Refactor deployment_type in TeamsCRUDProvider and update WorkflowSelector styles
  • Loading branch information
shivam-bit committed Jul 8, 2024
2 parents 56d1bc9 + e02d962 commit 9bcbb9d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web-server/src/components/Teams/useTeamsConfig.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export const TeamsCRUDProvider: React.FC<{
(_: SyntheticEvent<Element, Event>, value: BaseRepo[]) => {
const reposWithDeploymentType = value.map((r) => ({
...r,
deployment_type: DeploymentSources.PR_MERGE
deployment_type: r.deployment_type ?? DeploymentSources.PR_MERGE
}));
depFn(selections.set, reposWithDeploymentType);
depFn(teamRepoError.false);
Expand Down
7 changes: 6 additions & 1 deletion web-server/src/components/WorkflowSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,12 @@ export const DeploymentWorkflowSelector: FC<{ repo: BaseRepo }> = ({
'aria-labelledby': 'simple-menu',
disablePadding: true,
sx: {
padding: 0
padding: 0,
maxHeight: '350px',
overflowY: 'auto',
msOverflowStyle: 'none',
scrollbarWidth: 'none',
'&::-webkit-scrollbar': { display: 'none' }
}
}
}}
Expand Down

0 comments on commit 9bcbb9d

Please sign in to comment.