Add Latest Change Date to Frontend (#3231)

* Updated Logic for Versions

* Update logic, add date
This commit is contained in:
Michel Roegl-Brunner 2025-03-18 15:19:11 +01:00 committed by GitHub
parent 84314249b2
commit 4e36061ced
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 26 additions and 6 deletions

View file

@ -17,9 +17,8 @@ const getVersions = async () => {
const versions: AppVersion[] = JSON.parse(fileContent);
const modifiedVersions = versions.map(version => {
const nameParts = version.name.split('/');
let newName = nameParts[nameParts.length - 1];
newName = newName.toLowerCase().replace(/[^a-z0-9]/g, '');
let newName = version.name;
newName = newName.toLowerCase().replace(/[^a-z0-9/]/g, '');
return { ...version, name: newName };
});