Skip to content

Commit

Permalink
refactor(PromQLInput): compatible with no datasourceValue
Browse files Browse the repository at this point in the history
  • Loading branch information
jsers committed May 23, 2023
1 parent 1224cfb commit 69583f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/PromQLInput/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const ExpressionInput = (
completeEnabled
? {
remote: {
url: `${url}/${datasourceValue}`,
url: datasourceValue ? `${url}/${datasourceValue}` : url,
fetchFn: (resource, options = {}) => {
const params = options.body?.toString();
const search = params ? `?${params}` : '';
Expand Down

0 comments on commit 69583f0

Please sign in to comment.