mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-07 22:28:48 +00:00
Changedetection.io: Skip checking for diff if watch never had a change (#2186)
* Only check diff in there has ever been a change * Code style --------- Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
parent
dcc2f3e8f3
commit
e012ea6050
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ export default function Component({ service }) {
|
|||
let diffsDetected = 0;
|
||||
|
||||
Object.keys(data).forEach((key) => {
|
||||
if (data[key].last_checked === data[key].last_changed) {
|
||||
if (data[key].last_changed > 0 && data[key].last_checked === data[key].last_changed) {
|
||||
diffsDetected += 1;
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue