|
@@ -26,7 +26,7 @@ export default (props) => {
|
26
|
26
|
const getRegulationData = () => {
|
27
|
27
|
setLoading(true);
|
28
|
28
|
getRegulationList({ type: `station` }).then((res) => {
|
29
|
|
- setData(res.records[0]);
|
|
29
|
+ setData(res.records[0]||{});
|
30
|
30
|
setLoading(false);
|
31
|
31
|
// formRef.current.setFieldsValue(res.records[0]);
|
32
|
32
|
// console.log('tt', res)
|