Just exclude rejected and released for active list
This commit is contained in:
@@ -378,7 +378,7 @@ export default function MapDetails() {
|
||||
|
||||
{/* Mapfix Section - Active + History */}
|
||||
{mapfixes.length > 0 && (() => {
|
||||
const activeFix = mapfixes.find(fix => fix.StatusID <= MapfixStatus.Validated);
|
||||
const activeFix = mapfixes.find(fix => fix.StatusID !== MapfixStatus.Rejected && fix.StatusID !== MapfixStatus.Released);
|
||||
const releasedFixes = mapfixes.filter(fix => fix.StatusID === MapfixStatus.Released);
|
||||
const hasContent = activeFix || releasedFixes.length > 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user