chore: check selected shortcuts

This commit is contained in:
Steven 2023-11-12 14:02:39 +08:00
parent dddb643bed
commit 916423cc89

View File

@ -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) {