Apply suggestions from code review
Co-authored-by: Jamie Klassen <jamie.klassen@broadcom.com> Signed-off-by: Carlos Esteban Lopez Jaramillo <luchillo17@gmail.com>
This commit is contained in:
committed by
Carlos Esteban Lopez
parent
7133da27dc
commit
d98604b667
@@ -32,7 +32,7 @@ describe('useIsPodExecTerminalEnabled', () => {
|
||||
configApiRef,
|
||||
new ConfigReader({
|
||||
kubernetes: {
|
||||
podExecTerminal: { enable: isPodExecTerminalEnabled },
|
||||
podExecTerminal: { enabled: isPodExecTerminalEnabled },
|
||||
},
|
||||
}),
|
||||
],
|
||||
|
||||
@@ -23,5 +23,5 @@ import { configApiRef, useApi } from '@backstage/core-plugin-api';
|
||||
export const useIsPodExecTerminalEnabled = (): boolean | undefined => {
|
||||
const configApi = useApi(configApiRef);
|
||||
|
||||
return configApi.getOptionalBoolean('kubernetes.podExecTerminal.enable');
|
||||
return configApi.getOptionalBoolean('kubernetes.podExecTerminal.enabled');
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user