Showing
3 changed files
with
12 additions
and
12 deletions
... | ... | @@ -42,10 +42,10 @@ |
42 | 42 | const { customCommand } = record; |
43 | 43 | return setFieldsValue({ |
44 | 44 | ...record, |
45 | - transportType: customCommand?.transportType, | |
46 | - service: customCommand?.service, | |
47 | - command: customCommand?.command, | |
48 | - commandType: customCommand?.commandType, | |
45 | + transportType: customCommand?.transportType || (record as Recordable).transportType, | |
46 | + service: customCommand?.service || (record as Recordable).service, | |
47 | + command: customCommand?.command || (record as Recordable).command, | |
48 | + commandType: customCommand?.commandType || (record as Recordable).commandType, | |
49 | 49 | } as unknown as Partial<CommonDataSourceBindValueType>); |
50 | 50 | }; |
51 | 51 | ... | ... |
... | ... | @@ -42,10 +42,10 @@ |
42 | 42 | const { customCommand } = record; |
43 | 43 | return setFieldsValue({ |
44 | 44 | ...record, |
45 | - transportType: customCommand?.transportType, | |
46 | - service: customCommand?.service, | |
47 | - command: customCommand?.command, | |
48 | - commandType: customCommand?.commandType, | |
45 | + transportType: customCommand?.transportType || (record as Recordable).transportType, | |
46 | + service: customCommand?.service || (record as Recordable).service, | |
47 | + command: customCommand?.command || (record as Recordable).command, | |
48 | + commandType: customCommand?.commandType || (record as Recordable).commandType, | |
49 | 49 | } as unknown as Partial<CommonDataSourceBindValueType>); |
50 | 50 | }; |
51 | 51 | ... | ... |
... | ... | @@ -42,10 +42,10 @@ |
42 | 42 | const { customCommand } = record; |
43 | 43 | return setFieldsValue({ |
44 | 44 | ...record, |
45 | - transportType: customCommand?.transportType, | |
46 | - service: customCommand?.service, | |
47 | - command: customCommand?.command, | |
48 | - commandType: customCommand?.commandType, | |
45 | + transportType: customCommand?.transportType || (record as Recordable).transportType, | |
46 | + service: customCommand?.service || (record as Recordable).service, | |
47 | + command: customCommand?.command || (record as Recordable).command, | |
48 | + commandType: customCommand?.commandType || (record as Recordable).commandType, | |
49 | 49 | } as unknown as Partial<CommonDataSourceBindValueType>); |
50 | 50 | }; |
51 | 51 | ... | ... |