mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-13 10:07:34 +00:00
filter for undefined scope values
This commit is contained in:
@@ -43,10 +43,13 @@ export function ConsentScreen({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log("scope", scope);
|
||||||
return (
|
return (
|
||||||
<div className="pt-4 w-full flex flex-col items-center space-y-4">
|
<div className="pt-4 w-full flex flex-col items-center space-y-4">
|
||||||
<ul className="list-disc space-y-2 w-full">
|
<ul className="list-disc space-y-2 w-full">
|
||||||
{scope?.map((s) => {
|
{scope
|
||||||
|
?.filter((s) => !!s)
|
||||||
|
.map((s) => {
|
||||||
const translationKey = `device.scope.${s}`;
|
const translationKey = `device.scope.${s}`;
|
||||||
const description = t(translationKey, null);
|
const description = t(translationKey, null);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user