mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-05 22:38:48 +00:00
populate the server url from source option
This commit is contained in:
parent
74f02a3bf3
commit
8f44a004e0
1 changed files with 3 additions and 2 deletions
|
|
@ -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 }) => {
|
|||
<div>
|
||||
<div className="rest-api-methods-select-element-container">
|
||||
<div className={`col field w-100 d-flex rest-methods-url ${darkMode && 'dark'}`}>
|
||||
<BaseUrl theme={darkMode ? 'monokai' : 'default'} dataSourceURL={'dataSourceURL'} />
|
||||
<BaseUrl theme={darkMode ? 'monokai' : 'default'} dataSourceURL={serverUrl} />
|
||||
|
||||
<div className="col-6 d-flex">
|
||||
<div className={`${darkMode && 'dark'}`} style={{ width: '200px', height: '32px' }}>
|
||||
|
|
|
|||
Loading…
Reference in a new issue