Fixed the service token bugs

This commit is contained in:
Vladyslav Matsiiako
2023-01-04 20:22:51 -08:00
parent 9cf28fef5f
commit 8b48205881
4 changed files with 15 additions and 11 deletions
@@ -47,7 +47,7 @@ const addServiceToken = ({
})
}).then(async (res) => {
if (res && res.status == 200) {
return (await res.json()).serviceToken;
return (await res.json());
} else {
console.log('Failed to add service tokens');
}
+2
View File
@@ -124,6 +124,8 @@ export default function SettingsBasic() {
workspaceId={router.query.id}
closeModal={closeAddServiceTokenModal}
workspaceName={workspaceName}
serviceTokens={serviceTokens}
setServiceTokens={setServiceTokens}
/>
<div className="flex flex-row mr-6 max-w-5xl">
<div className="w-full max-h-screen pb-2 overflow-y-auto">