From 56187ec43ecf4b4bce9ffccd2575cd34db06f735 Mon Sep 17 00:00:00 2001 From: Tuan Dang Date: Tue, 7 Mar 2023 15:33:45 +0700 Subject: [PATCH] Fix lint errors --- .../components/ServiceTokenSection/ServiceTokenSection.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/Settings/ProjectSettingsPage/components/ServiceTokenSection/ServiceTokenSection.tsx b/frontend/src/views/Settings/ProjectSettingsPage/components/ServiceTokenSection/ServiceTokenSection.tsx index 38528020e..429876435 100644 --- a/frontend/src/views/Settings/ProjectSettingsPage/components/ServiceTokenSection/ServiceTokenSection.tsx +++ b/frontend/src/views/Settings/ProjectSettingsPage/components/ServiceTokenSection/ServiceTokenSection.tsx @@ -47,7 +47,7 @@ const createServiceTokenSchema = yup.object({ permissions: yup.object().shape({ read: yup.boolean().required(), write: yup.boolean().required() - }) + }).defined().required() }); export type CreateServiceToken = yup.InferType; @@ -248,6 +248,7 @@ export const ServiceTokenSection = ({ // TODO: refactor return (