From 8f44a004e018d420c7dcbf97910f5a2cb4556533 Mon Sep 17 00:00:00 2001 From: arpitnath Date: Tue, 2 May 2023 05:35:49 +0530 Subject: [PATCH] populate the server url from source option --- frontend/src/Editor/QueryManager/QueryEditors/GRPC.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/Editor/QueryManager/QueryEditors/GRPC.jsx b/frontend/src/Editor/QueryManager/QueryEditors/GRPC.jsx index 25c858b6d5..d4d47caffc 100644 --- a/frontend/src/Editor/QueryManager/QueryEditors/GRPC.jsx +++ b/frontend/src/Editor/QueryManager/QueryEditors/GRPC.jsx @@ -26,8 +26,9 @@ const GRPC = ({ darkMode, selectedDataSource, ...restProps }) => { const protobufDefintion = JSON.parse(selectedDataSource?.options?.protobuf?.value); const { options, optionsChanged, queryName } = restProps; + const serverUrl = selectedDataSource?.options?.url?.value; - console.log('---GRPC options', { options }); + console.log('---GRPC options', { x: selectedDataSource?.options }); const [serviceNames, setServiceNames] = React.useState([]); const [selectedServiceName, setSelectedServiceName] = React.useState({ @@ -128,7 +129,7 @@ const GRPC = ({ darkMode, selectedDataSource, ...restProps }) => {
- +