mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-28 06:39:01 +03:00
Ensure sub label is null when submitting an empty string (#16779)
* null sub_label when submitting an empty string * prevent cancel from submitting form * fix test
This commit is contained in:
@@ -86,7 +86,9 @@ export default function TextEntryDialog({
|
||||
)}
|
||||
/>
|
||||
<DialogFooter className="pt-4">
|
||||
<Button onClick={() => setOpen(false)}>Cancel</Button>
|
||||
<Button type="button" onClick={() => setOpen(false)}>
|
||||
Cancel
|
||||
</Button>
|
||||
<Button variant="select" type="submit">
|
||||
Save
|
||||
</Button>
|
||||
|
||||
Reference in New Issue
Block a user