From b09b7513a723e7e8b0c0cd24d5fa91bb946d6895 Mon Sep 17 00:00:00 2001 From: Harpo Harbert Date: Thu, 12 Dec 2024 15:00:04 -0800 Subject: [PATCH] Fixes accessLevel not defined error --- app/classes/aapbRecordHelpers.tsx | 84 +++++++++++++++---------------- app/types/aapb.tsx | 1 + 2 files changed, 41 insertions(+), 44 deletions(-) diff --git a/app/classes/aapbRecordHelpers.tsx b/app/classes/aapbRecordHelpers.tsx index 403737a..e941461 100644 --- a/app/classes/aapbRecordHelpers.tsx +++ b/app/classes/aapbRecordHelpers.tsx @@ -11,17 +11,13 @@ export function handleAapbRecordGroup(aapbRecordGroup, key) { // this func is where we split by whitespace v var guids = parseAapbRecordGroup(aapbRecordGroup.value.guids) - // preserve these flags' effect for each aapb_record_group - var showThumbnail = aapbRecordGroup.value.show_thumbnail - var showTitle = aapbRecordGroup.value.show_title - return ( { inst = [inst] } // Find all proxies - let proxies = inst.find(i => i.instantiationGenerations == 'Proxy') + let proxies = inst.find((i) => i.instantiationGenerations == 'Proxy') if (proxies) { // proxytome proxytome proxytome proxytome if (!(proxies instanceof Array)) { proxies = [proxies] } // Get the aspect ratio of the essence tracks - let ets = proxies.map(proxy => + let ets = proxies.map((proxy) => proxy.instantiationEssenceTrack.map( - track => track.essenceTrackAspectRatio + (track) => track.essenceTrackAspectRatio ) ) for (let aspect of ets) { @@ -97,9 +93,13 @@ export class AAPBRecord extends Component { } } } - - this.setState({ guid: hyphenGuid, pbcore: record, wide: isWide, mediaType: this.mediaType(record) }) + this.setState({ + guid: hyphenGuid, + pbcore: record, + wide: isWide, + mediaType: this.mediaType(record), + }) } mediaType(pbcore: PBCore) { @@ -166,7 +166,7 @@ export class AAPBRecord extends Component {