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 [editingTitle, setEditingTitle] = useState<string>('');
|
||||||
const [editingConfig, setEditingConfig] = useState(false);
|
const [editingConfig, setEditingConfig] = useState(false);
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
setEditingTitle(workflow.title ?? typeTitle);
|
if (workflow) {
|
||||||
|
setEditingTitle(workflow.title ?? typeTitle);
|
||||||
|
}
|
||||||
}, [workflow]);
|
}, [workflow]);
|
||||||
|
|
||||||
if (!workflow || !workflow.type) {
|
if (!workflow || !workflow.type) {
|
||||||
|
Loading…
Reference in New Issue
Block a user