Skip to content

Commit dc0b19a

Browse files
authored
use proper web client bridge API (#4434)
1 parent 5484fea commit dc0b19a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/KymaCompanion/JouleChat.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ export default function JouleChat() {
3838

3939
const bridgeImpl = {
4040
getApplicationContext: () => {
41-
return resourceRef.current;
42-
},
43-
getClusterAuth: () => {
41+
const resourceContext = resourceRef.current || {};
4442
const clusterData =
4543
clusterRef.current?.currentContext?.cluster?.cluster;
4644
const auth = authDataRef.current;
45+
4746
return {
47+
...resourceContext,
4848
clusterUrl: clusterData?.server,
4949
certificateAuthorityData: clusterData?.['certificate-authority-data'],
5050
auth: {

0 commit comments

Comments
 (0)