mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-29 01:40:51 +00:00
perf:textarea auto height (#2967)
* perf:textarea auto height * optimize editor height & fix variable label split
This commit is contained in:
@@ -11,7 +11,9 @@ export default function VariableLabel({
|
||||
nodeAvatar: string;
|
||||
}) {
|
||||
const { t } = useTranslation();
|
||||
const [parentLabel, childLabel] = variableLabel.split('.');
|
||||
// avoid including '.' in the variable name.
|
||||
const [parentLabel, ...childLabels] = variableLabel.split('.');
|
||||
const childLabel = childLabels.join('.');
|
||||
|
||||
return (
|
||||
<>
|
||||
|
Reference in New Issue
Block a user