File tree Expand file tree Collapse file tree
components/project-details Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -126,6 +126,11 @@ class ProjectDetails extends HTMLElement {
126126 render ( ) {
127127 const project = this . Project ?? TPEN . activeProject
128128
129+ if ( ! project ) {
130+ console . error ( 'No project data available to render' )
131+ return
132+ }
133+
129134 const manifestKey = JSON . stringify ( project ?. manifest ?? [ ] )
130135
131136 // Only render if manifest has changed or first render
Original file line number Diff line number Diff line change @@ -87,14 +87,7 @@ <h2 slot="header">Project Details <a id="projectManagementBtn" title="Manage Pro
8787 import TPEN from '../../api/TPEN.js'
8888 import CheckPermissions from '../../components/check-permissions/checkPermissions.js'
8989
90- function setProjectId ( ) {
91- document . querySelector ( 'tpen-project-details' ) . setAttribute ( 'tpen-project-id' , TPEN . screen . projectInQuery )
92- }
93-
9490 TPEN . eventDispatcher . on ( 'tpen-project-loaded' , ( ev ) => {
95- // Set the project ID attribute to trigger controlled render
96- setProjectId ( )
97-
9891 const goParse = document . getElementById ( "goParse" )
9992 const goTranscribe = document . getElementById ( "goTranscribe" )
10093 const leaveProject = document . getElementById ( "leaveProject" )
You can’t perform that action at this time.
0 commit comments