Creating a new policy #{policy_index}
) : (Editing policy #{policy_index}
)} {allAuthMethods.map((method, index) => { //take the url from the updated change or from the policy const providerURL = changedProvider[index] === undefined ? policy?.methods.find((m) => m.authentication_method === index) ?.provider : changedProvider[index]; const type: KnownAuthMethods = method.type as KnownAuthMethods; function changeProviderTo(url: string): void { const copy = [...changedProvider]; copy[index] = url; setChangedProvider(copy); } return (