|
@ -153,6 +153,7 @@ function PatrolPlan (props) { |
|
|
curRecord={curRecord} |
|
|
curRecord={curRecord} |
|
|
onCancel={() => { |
|
|
onCancel={() => { |
|
|
setVisible(false); |
|
|
setVisible(false); |
|
|
|
|
|
setCurRecord(null) |
|
|
}} |
|
|
}} |
|
|
/> : null |
|
|
/> : null |
|
|
} |
|
|
} |
|
@ -162,7 +163,6 @@ function PatrolPlan (props) { |
|
|
|
|
|
|
|
|
function mapStateToProps (state) { |
|
|
function mapStateToProps (state) { |
|
|
const { auth } = state |
|
|
const { auth } = state |
|
|
console.log(state); |
|
|
|
|
|
return { |
|
|
return { |
|
|
user: auth.user |
|
|
user: auth.user |
|
|
} |
|
|
} |
|
|