mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-28 05:51:58 +08:00
FE: chart metrics name suggestion not updated when text is update (#3329)
Co-authored-by: gitstart <gitstart@users.noreply.github.com> Co-authored-by: Rubens Rafael <70234898+RubensRafael@users.noreply.github.com> Co-authored-by: RubensRafael <rubensrafael2@live.com> Co-authored-by: gitstart_bot <gitstart_bot@users.noreply.github.com> Co-authored-by: Prashant Shahi <prashant@signoz.io>
This commit is contained in:
parent
458cff32fd
commit
9488ce8585
@ -2,8 +2,6 @@ import { autocompleteType } from 'constants/queryBuilder';
|
|||||||
import { SPLIT_FIRST_UNDERSCORE } from 'constants/regExp';
|
import { SPLIT_FIRST_UNDERSCORE } from 'constants/regExp';
|
||||||
|
|
||||||
export const getAutocompleteValueAndType = (str: string): [string, string] => {
|
export const getAutocompleteValueAndType = (str: string): [string, string] => {
|
||||||
if (str === '') return [str, str];
|
|
||||||
|
|
||||||
const [firstValue, secondValue] = str.split(SPLIT_FIRST_UNDERSCORE);
|
const [firstValue, secondValue] = str.split(SPLIT_FIRST_UNDERSCORE);
|
||||||
|
|
||||||
if (
|
if (
|
||||||
@ -13,5 +11,5 @@ export const getAutocompleteValueAndType = (str: string): [string, string] => {
|
|||||||
return [firstValue, secondValue];
|
return [firstValue, secondValue];
|
||||||
}
|
}
|
||||||
|
|
||||||
return ['', firstValue];
|
return [str, str];
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user