|
1 |
| -import { useSelector } from "react-redux"; |
2 |
| -import { getProcessingType } from "../../../../../../../reducers/selectors/graph"; |
3 |
| -import { GenericValidationRequest } from "../../../../../../../actions/nk/adhocTesting"; |
4 |
| -import { debounce } from "lodash"; |
5 |
| -import { useSettings } from "../../SettingsProvider"; |
6 | 1 | import { Box, Button, CircularProgress, FormControl, Stack } from "@mui/material";
|
| 2 | +import { debounce } from "lodash"; |
7 | 3 | import React, { useMemo, useRef, useState } from "react";
|
8 | 4 | import type AceEditor from "react-ace";
|
9 |
| - |
10 |
| - |
11 | 5 | import type { IAceEditor } from "react-ace/lib/types";
|
12 | 6 | import { useTranslation } from "react-i18next";
|
| 7 | +import { useSelector } from "react-redux"; |
| 8 | + |
| 9 | +import type { GenericValidationRequest } from "../../../../../../../actions/nk/adhocTesting"; |
13 | 10 | import HttpService from "../../../../../../../http/HttpService";
|
| 11 | +import { getProcessingType } from "../../../../../../../reducers/selectors/graph"; |
14 | 12 | import type { NodeValidationError, ReturnedType, VariableTypes } from "../../../../../../../types";
|
15 | 13 | import { useDelayedEnterAction } from "../../../../../../toolbars/scenarioDetails/useDelayedEnterAction";
|
16 | 14 | import { SpelEditor } from "../../../../editors/expression/SpelEditor";
|
17 | 15 | import { ExpressionLang } from "../../../../editors/expression/types";
|
18 | 16 | import { getValidationErrorsForField, mandatoryValueValidator, uniqueValueValidator } from "../../../../editors/Validators";
|
19 | 17 | import type { FieldName, FixedValuesOption, onChangeType } from "../../../item";
|
| 18 | +import { useSettings } from "../../SettingsProvider"; |
20 | 19 | import { ListItems } from "./ListItems";
|
21 | 20 | import { SettingLabelStyled } from "./StyledSettingsComponnets";
|
22 | 21 |
|
@@ -191,7 +190,7 @@ export const UserDefinedListInput = ({
|
191 | 190 | }
|
192 | 191 | expressionObj={{ language: ExpressionLang.SpEL, expression: temporaryListItem.trim() }}
|
193 | 192 | onValueChange={(value) => {
|
194 |
| - setTemporaryListItem(value.expression); |
| 193 | + setTemporaryListItem(value.expression.trim()); |
195 | 194 | setTemporaryValuesTyping(true);
|
196 | 195 | setTemporaryValueErrors([]);
|
197 | 196 | validateTemporaryListItem(value.expression);
|
|
0 commit comments