mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-12-02 20:27:49 +08: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