chore: check selected shortcuts

This commit is contained in:
Steven 2023-11-12 14:02:39 +08:00
parent 3932cabeac
commit 12cf0f8a8c

View File

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