This commit is contained in:
Joshen Lim committed 2023-03-14 09:39:03 +08:00
1 parent 03c6d296f7
commit ee3f091996
2 files changed
+5 -6

No files matched your search

@@ -13,7 +13,6 @@ import {
Modal,
Form,
Toggle,
IconHelpCircle,
Input,
IconExternalLink,
} from 'ui'
@@ -127,7 +126,7 @@ const EdgeFunctionDetails: FC<Props> = () => {
if (selectedFunction !== undefined) {
const formValues = {
name: selectedFunction?.name,
verifyJwt: selectedFunction?.verify_jwt,
verify_jwt: selectedFunction?.verify_jwt,
}
resetForm({ values: formValues, initialValues: formValues })
}
@@ -184,8 +183,8 @@ const EdgeFunctionDetails: FC<Props> = () => {
<FormSection header={<FormSectionLabel>Function Configuration</FormSectionLabel>}>
<FormSectionContent loading={selectedFunction === undefined}>
<Toggle
id="verifyJwt"
name="verifyJwt"
id="verify_jwt"
name="verify_jwt"
label="Enforce JWT Verification"
descriptionText="Require a valid JWT in the authorization header when invoking the function"
/>
@@ -8,8 +8,8 @@ export type EdgeFunctionsUpdateVariables = {
slug: string
payload: {
name?: string
verifyJwt?: boolean
importMap?: boolean
verify_jwt?: boolean
import_map?: boolean
}
}