mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-15 14:27:23 +00:00
misc: added channels count validator
This commit is contained in:
@@ -10,4 +10,7 @@ export const validateSlackChannelsField = z
|
||||
.split(",")
|
||||
.map((id) => id.trim())
|
||||
.join(", ");
|
||||
})
|
||||
.refine((data) => data.split(",").length <= 20, {
|
||||
message: "You can only select up to 20 slack channels"
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user