Compare commits

...

3 Commits

Author SHA1 Message Date
Cedric Verstraeten
3341e99af1 timetable might be empty 2023-06-13 09:22:51 +02:00
Cedric Verstraeten
ced6e678ec Update Settings.jsx 2023-06-12 21:08:05 +02:00
Cedric Verstraeten
340a5d7ef6 Update Settings.jsx 2023-06-12 21:06:21 +02:00
2 changed files with 2 additions and 3 deletions

View File

@@ -139,7 +139,7 @@ func ProcessMotion(motionCursor *pubsub.QueueCursor, configuration *models.Confi
hour := now.Hour()
minute := now.Minute()
second := now.Second()
if config.Timetable != nil {
if config.Timetable != nil && len(config.Timetable) > 0 {
timeInterval := config.Timetable[int(weekday)]
if timeInterval != nil {
start1 := timeInterval.Start1

View File

@@ -328,8 +328,7 @@ class Settings extends React.Component {
if (config) {
dispatchVerifyOnvif(
cameraConfig,
(data) => {
console.log(data);
() => {
this.setState({
verifyOnvifSuccess: true,
verifyOnvifError: false,