mirror of
https://github.com/swissmakers/swiss-datashare.git
synced 2026-03-30 05:27:03 +02:00
fix: share can't be created if an invalid email is entered in mail recipients
This commit is contained in:
@@ -371,7 +371,7 @@ const CreateUploadModalBody = ({
|
||||
searchable
|
||||
creatable
|
||||
id="recipient-emails"
|
||||
type="email"
|
||||
inputMode="email"
|
||||
getCreateLabel={(query) => `+ ${query}`}
|
||||
onCreate={(query) => {
|
||||
if (!query.match(/^\S+@\S+\.\S+$/)) {
|
||||
|
||||
Reference in New Issue
Block a user