some migrations have empty name (#34288)
fixes: #33309 Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
This commit is contained in:
parent
65f4ea9c8c
commit
b47a8b3f05
1 changed files with 5 additions and 5 deletions
|
@ -20,7 +20,7 @@ type DataType = RequiredActionProviderRepresentation &
|
|||
};
|
||||
|
||||
type Row = {
|
||||
name: string;
|
||||
name?: string;
|
||||
enabled: boolean;
|
||||
defaultAction: boolean;
|
||||
data: DataType;
|
||||
|
@ -173,14 +173,14 @@ export const RequiredActions = () => {
|
|||
displayKey: "enabled",
|
||||
cellRenderer: (row) => (
|
||||
<Switch
|
||||
id={`enable-${toKey(row.name)}`}
|
||||
id={`enable-${toKey(row.name || "")}`}
|
||||
label={t("on")}
|
||||
labelOff={t("off")}
|
||||
isChecked={row.enabled}
|
||||
onChange={() => {
|
||||
updateAction(row.data, "enabled");
|
||||
}}
|
||||
aria-label={toKey(row.name)}
|
||||
aria-label={row.name}
|
||||
/>
|
||||
),
|
||||
width: 20,
|
||||
|
@ -191,7 +191,7 @@ export const RequiredActions = () => {
|
|||
thTooltipText: "authDefaultActionTooltip",
|
||||
cellRenderer: (row) => (
|
||||
<Switch
|
||||
id={`default-${toKey(row.name)}`}
|
||||
id={`default-${toKey(row.name || "")}`}
|
||||
label={t("on")}
|
||||
isDisabled={!row.enabled}
|
||||
labelOff={!row.enabled ? t("disabledOff") : t("off")}
|
||||
|
@ -199,7 +199,7 @@ export const RequiredActions = () => {
|
|||
onChange={() => {
|
||||
updateAction(row.data, "defaultAction");
|
||||
}}
|
||||
aria-label={toKey(row.name)}
|
||||
aria-label={row.name}
|
||||
/>
|
||||
),
|
||||
width: 20,
|
||||
|
|
Loading…
Reference in a new issue