diff --git a/public/app/plugins/datasource/influxdb/components/VisualInfluxQLEditor/Seg.tsx b/public/app/plugins/datasource/influxdb/components/VisualInfluxQLEditor/Seg.tsx index db9af3b04ab..aa2d2e3b6b3 100644 --- a/public/app/plugins/datasource/influxdb/components/VisualInfluxQLEditor/Seg.tsx +++ b/public/app/plugins/datasource/influxdb/components/VisualInfluxQLEditor/Seg.tsx @@ -58,6 +58,12 @@ type SelReloadProps = { allowCustomValue?: boolean; }; +// when a custom value is written into a select-box, +// by default the new value is prefixed with "Create:", +// and that sounds confusing because here we do not create +// anything. we change this to just be the entered string. +const formatCreateLabel = (v: string) => v; + const SelReload = ({ loadOptions, allowCustomValue, onChange, onClose }: SelReloadProps): JSX.Element => { // here we rely on the fact that writing text into the // does not cause a re-render of the current react component. @@ -70,6 +76,7 @@ const SelReload = ({ loadOptions, allowCustomValue, onChange, onClose }: SelRelo return (