mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 08:47:20 +00:00
fix(plugin-workflow): fix trigger title when workflow not loaded (#1875)
This commit is contained in:
parent
f4064767c6
commit
0264d89d14
@ -143,7 +143,9 @@ export const TriggerConfig = () => {
|
||||
const [editingTitle, setEditingTitle] = useState<string>('');
|
||||
const [editingConfig, setEditingConfig] = useState(false);
|
||||
useEffect(() => {
|
||||
setEditingTitle(workflow.title ?? typeTitle);
|
||||
if (workflow) {
|
||||
setEditingTitle(workflow.title ?? typeTitle);
|
||||
}
|
||||
}, [workflow]);
|
||||
|
||||
if (!workflow || !workflow.type) {
|
||||
|
Loading…
Reference in New Issue
Block a user