Browse Source

Bugfix

master
ruudii8 2 years ago
parent
commit
bd28629e98
1 changed files with 10 additions and 2 deletions
  1. +10
    -2
      src/components/ManualView/lampList.js

+ 10
- 2
src/components/ManualView/lampList.js View File

@ -11,7 +11,8 @@ const SelectStyle = {
minWidth: 120
}
const styles= {
/*
* const styles= {
dropdown: {
minWidth: 120
},
@ -19,6 +20,7 @@ const styles= {
marginTop: '20px'
}
}
* */
class LampList extends React.Component {
@ -100,6 +102,12 @@ class LampList extends React.Component {
default:
}
api.createLamp(light)
.then(res => {
console.log(res)
if(res.status === 200){
this.handleClose()
}
})
console.log(light)
}
@ -257,4 +265,4 @@ class LampList extends React.Component {
export default LampList
//onClick={} onChange={} onClose={}
//onClick={} onChange={} onClose={}

Loading…
Cancel
Save