diff --git a/plugins/reolink/package-lock.json b/plugins/reolink/package-lock.json index 1d9768ad1..37e7d52a8 100644 --- a/plugins/reolink/package-lock.json +++ b/plugins/reolink/package-lock.json @@ -1,12 +1,12 @@ { "name": "@scrypted/reolink", - "version": "0.0.8", + "version": "0.0.9", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@scrypted/reolink", - "version": "0.0.8", + "version": "0.0.9", "license": "Apache", "dependencies": { "@koush/axios-digest-auth": "^0.8.5", diff --git a/plugins/reolink/package.json b/plugins/reolink/package.json index 5e3ee6cbb..5d6d51646 100644 --- a/plugins/reolink/package.json +++ b/plugins/reolink/package.json @@ -1,6 +1,6 @@ { "name": "@scrypted/reolink", - "version": "0.0.8", + "version": "0.0.9", "description": "Reolink Plugin for Scrypted", "author": "Scrypted", "license": "Apache", diff --git a/plugins/reolink/src/reolink.api.ts b/plugins/reolink/src/reolink.api.ts index 6c153f550..5330f894e 100644 --- a/plugins/reolink/src/reolink.api.ts +++ b/plugins/reolink/src/reolink.api.ts @@ -32,7 +32,7 @@ export class ReolinkCameraClient { url: url.toString(), }); return { - value: !!response.data[0].value.state, + value: !!response.data?.[0]?.value?.state, data: response.data, }; }