From cf90b2e26f74e5c7b144ca676eff8ac3b0ed938f Mon Sep 17 00:00:00 2001 From: yadhap Dahal Date: Fri, 5 Jan 2024 11:08:26 -0500 Subject: [PATCH] Added max limit for hook name and url --- .../admin/notifications/MsTeams/AddEditModel.jsx | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/client-reactjs/src/components/admin/notifications/MsTeams/AddEditModel.jsx b/client-reactjs/src/components/admin/notifications/MsTeams/AddEditModel.jsx index bd7f9b788..9365c1e53 100644 --- a/client-reactjs/src/components/admin/notifications/MsTeams/AddEditModel.jsx +++ b/client-reactjs/src/components/admin/notifications/MsTeams/AddEditModel.jsx @@ -90,10 +90,23 @@ const AddEditModel = ({ visible, setModalVisibility, hooks, setHooks, isEditing, pattern: /^[a-zA-Z0-9() _-]+$/, message: 'Valid characters for hook name includes a-z, A-Z, 0-9, (, ), -, and _', }, + { + max: 100, + message: 'Name cannot be longer than 100 characters', + }, ]}> - +