mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
Fix edge case (for installed apps with missing lastUpdate field ?)
This commit is contained in:
parent
bf4d846fef
commit
c6ce7b9eff
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@
|
|||
dataraw[v['id']]['installColor'] = combineColors(dataraw[v['id']]['stateColor'], dataraw[v['id']]['levelColor']);
|
||||
dataraw[v['id']]['displayLicense'] = (dataraw[v['id']]['manifest']['license'] !== undefined
|
||||
&& dataraw[v['id']]['manifest']['license'] !== 'free');
|
||||
dataraw[v['id']]['updateDate'] = dataraw[v['id']]['lastUpdate'] * 1000;
|
||||
dataraw[v['id']]['updateDate'] = dataraw[v['id']]['lastUpdate'] * 1000 || 0;
|
||||
dataraw[v['id']]['isSafe'] = (dataraw[v['id']]['installColor'] !== 'danger');
|
||||
dataraw[v['id']]['isWorking'] = isWorking ? "isworking" : "notFullyWorking";
|
||||
|
||||
|
|
Loading…
Reference in a new issue