mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix(frontend): apply feedback
This commit is contained in:
parent
15411c0cea
commit
8c43f4e182
@ -241,16 +241,14 @@ export const NlpSampleForm: FC<ComponentFormProps<INlpDatasetSample>> = ({
|
||||
color: "secondary",
|
||||
variant: "contained",
|
||||
onClick: () => {
|
||||
{
|
||||
const newKeywordEntity = {
|
||||
...selection,
|
||||
entity: "",
|
||||
} as INlpDatasetKeywordEntity;
|
||||
const newIndex = findInsertIndex(newKeywordEntity);
|
||||
const newKeywordEntity = {
|
||||
...selection,
|
||||
entity: "",
|
||||
} as INlpDatasetKeywordEntity;
|
||||
const newIndex = findInsertIndex(newKeywordEntity);
|
||||
|
||||
selection && insertKeywordEntity(newIndex, newKeywordEntity);
|
||||
setSelection(null);
|
||||
}
|
||||
selection && insertKeywordEntity(newIndex, newKeywordEntity);
|
||||
setSelection(null);
|
||||
},
|
||||
disabled: !selection?.value,
|
||||
startIcon: <AddIcon />,
|
||||
|
Loading…
Reference in New Issue
Block a user