@@ -20,7 +20,7 @@ interface DocumentResource {
2020
2121interface UseMeetingDocReturn {
2222 getMeetingDoc : ( meetingId : string ) => DocumentResource ;
23- getCurrentMeetingDoc : ( ) => DocumentResource | null ;
23+ getCurrentMeetingDoc : ( ) => MeetingDocument | null ;
2424 clearMeetingDoc : ( ) => void ;
2525 meetingTitle : ComputedRef < string > ;
2626 meetingOwner : ComputedRef < string > ;
@@ -34,7 +34,7 @@ const currentMeetingId: Ref<string | null> = ref(null);
3434
3535export function useMeetingDoc ( ) : UseMeetingDocReturn {
3636 const getMeetingDoc = ( meetingId : string ) : DocumentResource => {
37- if ( meetingDoc . value && currentMeetingId . value === meetingId ) {
37+ if ( meetingDoc . value ) {
3838 return meetingDoc . value ;
3939 }
4040
@@ -50,8 +50,8 @@ export function useMeetingDoc(): UseMeetingDocReturn {
5050 return docResource ;
5151 } ;
5252
53- const getCurrentMeetingDoc = ( ) : DocumentResource | null => {
54- return meetingDoc . value ;
53+ const getCurrentMeetingDoc = ( ) : MeetingDocument | null => {
54+ return meetingDoc . value ?. doc ?? null ;
5555 } ;
5656
5757 const clearMeetingDoc = ( ) : void => {
@@ -60,7 +60,7 @@ export function useMeetingDoc(): UseMeetingDocReturn {
6060 } ;
6161
6262 const meetingTitle = computed ( ( ) : string => {
63- const doc = meetingDoc . value ?. doc ;
63+ const doc = getCurrentMeetingDoc ( ) ;
6464 return doc ?. title || doc ?. name || currentMeetingId . value || "" ;
6565 } ) ;
6666
0 commit comments