File tree Expand file tree Collapse file tree 3 files changed +13
-7
lines changed
store/login-mode/annotation
libs/web-media/src/lib/data-info Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ export class UserInteractionsService {
2020 return this . _afteradd ;
2121 }
2222
23- private _elements : StatisticElem [ ] ;
23+ private _elements : StatisticElem [ ] = [ ] ;
2424
2525 get elements ( ) : StatisticElem [ ] {
2626 return this . _elements ;
Original file line number Diff line number Diff line change @@ -222,9 +222,14 @@ export class AnnotationEffects {
222222 modeState . logging . startTime ,
223223 modeState . logging . startReference
224224 ) ;
225- this . uiService . elements = modeState . logging . logs . map ( ( a ) =>
226- StatisticElem . fromAny ( a )
227- ) ;
225+ if (
226+ modeState . logging . logs &&
227+ Array . isArray ( modeState . logging . logs )
228+ ) {
229+ this . uiService . elements = modeState . logging . logs . map ( ( a ) =>
230+ StatisticElem . fromAny ( a )
231+ ) ;
232+ }
228233 this . uiService . addElementFromEvent (
229234 'octra' ,
230235 { value : BUILD . version } ,
@@ -730,14 +735,15 @@ export class AnnotationEffects {
730735 'audio_url'
731736 )
732737 ) {
733-
734738 const fileInfoAudio = FileInfo . fromURL (
735739 this . routingService . staticQueryParams [ 'audio_url' ]
736740 ) ;
737741
738742 inputs = [
739743 {
740- filename : this . routingService . staticQueryParams [ 'audio_name' ] ?? fileInfoAudio . fullname ,
744+ filename :
745+ this . routingService . staticQueryParams [ 'audio_name' ] ??
746+ fileInfoAudio . fullname ,
741747 fileType : 'audio/wave' ,
742748 type : 'input' ,
743749 url : this . routingService . staticQueryParams [ 'audio_url' ] ,
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ export class FileInfo extends DataInfo {
101101 ) {
102102 const extraction = extractFileNameFromURL ( url ) ;
103103 const result = new FileInfo (
104- name ?? extraction . name ,
104+ name ?? ` ${ extraction . name } . ${ extraction . extension } ` ,
105105 type ?? this . getMimeTypeByExtension ( extraction . extension ) ,
106106 size ?? 0 ,
107107 undefined ,
You can’t perform that action at this time.
0 commit comments