We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5484fea commit dc0b19aCopy full SHA for dc0b19a
src/components/KymaCompanion/JouleChat.jsx
@@ -38,13 +38,13 @@ export default function JouleChat() {
38
39
const bridgeImpl = {
40
getApplicationContext: () => {
41
- return resourceRef.current;
42
- },
43
- getClusterAuth: () => {
+ const resourceContext = resourceRef.current || {};
44
const clusterData =
45
clusterRef.current?.currentContext?.cluster?.cluster;
46
const auth = authDataRef.current;
+
47
return {
+ ...resourceContext,
48
clusterUrl: clusterData?.server,
49
certificateAuthorityData: clusterData?.['certificate-authority-data'],
50
auth: {
0 commit comments