fix(ui): structurally resolve unclickable watch path badges

This commit is contained in:
Yash Kumar
2026-07-09 16:59:25 +05:30
parent 1c4414165d
commit ae95485b74
10 changed files with 60 additions and 30 deletions
@@ -442,14 +442,17 @@ export const SaveBitbucketProviderCompose = ({ composeId }: Props) => {
{field.value?.map((path, index) => (
<Badge key={index} variant="secondary">
{path}
<X
className="ml-1 size-3 cursor-pointer"
<button
type="button"
className="ml-1 cursor-pointer hover:text-destructive focus:outline-none"
onClick={() => {
const newPaths = [...(field.value || [])];
newPaths.splice(index, 1);
form.setValue("watchPaths", newPaths);
}}
/>
>
<X className="size-3" />
</button>
</Badge>
))}
</div>