fix: disable create list and label button when input is empty (#130)

This commit is contained in:
Ridham Khandar
2025-07-29 02:19:24 +05:30
committed by GitHub
parent f8827da73a
commit ca1dd92ab4
2 changed files with 9 additions and 1 deletions

View File

@@ -229,6 +229,9 @@ export function LabelForm({
<Button
type="submit"
isLoading={updateLabel.isPending || createLabel.isPending}
disabled={
!watch("name")
}
>
{isEdit ? t`Update label` : t`Create label`}
</Button>