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