mirror of
https://github.com/aykhans/slash-e.git
synced 2025-04-20 22:07:15 +00:00
chore: check selected shortcuts
This commit is contained in:
parent
dddb643bed
commit
916423cc89
@ -104,6 +104,10 @@ const CreateCollectionDialog: React.FC<Props> = (props: Props) => {
|
|||||||
toast.error("Please fill in required fields.");
|
toast.error("Please fill in required fields.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (selectedShortcuts.length === 0) {
|
||||||
|
toast.error("Please select at least one shortcut.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (!isCreating) {
|
if (!isCreating) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user