fix(web): memory-write node hide message config

This commit is contained in:
zhaoying
2026-02-11 12:08:35 +08:00
parent 32b40fc6bf
commit 1795364f5f
2 changed files with 5 additions and 3 deletions

View File

@@ -2,7 +2,7 @@
* @Author: ZhaoYing
* @Date: 2026-02-03 15:39:59
* @Last Modified by: ZhaoYing
* @Last Modified time: 2026-02-09 19:56:42
* @Last Modified time: 2026-02-11 12:07:06
*/
import { type FC, useEffect, useState, useMemo } from "react";
import clsx from 'clsx'
@@ -627,6 +627,7 @@ const Properties: FC<PropertiesProps> = ({
}
layout={config.type === 'switch' ? 'horizontal' : 'vertical'}
className={key === 'parallel_count' ? 'rb:-mt-3! rb:leading-3.5!' : ''}
hidden={Boolean(config.hidden)}
>
{config.type === 'input'
? <Input placeholder={t('common.pleaseEnter')} />

View File

@@ -2,7 +2,7 @@
* @Author: ZhaoYing
* @Date: 2026-02-03 15:06:18
* @Last Modified by: ZhaoYing
* @Last Modified time: 2026-02-09 20:08:03
* @Last Modified time: 2026-02-11 12:07:20
*/
import LoopNode from './components/Nodes/LoopNode';
import NormalNode from './components/Nodes/NormalNode';
@@ -240,7 +240,8 @@ export const nodeLibrary: NodeLibrary[] = [
config: {
message: {
type: 'editor',
isArray: false
isArray: false,
hidden: true,
},
messages: {
type: 'messageEditor',