File tree Expand file tree Collapse file tree 3 files changed +12
-17
lines changed Expand file tree Collapse file tree 3 files changed +12
-17
lines changed Original file line number Diff line number Diff line change 1010
1111## Version History
1212
13+ ### v11.12.0 - 2025-10-29
14+
15+ - :bug : Due to a bug in TAK Server (https://issues.tak.gov/browse/TKS-1023 ) patch the Mission List Layers to only use Mission Name
16+
1317### v11.11.0 - 2025-10-29
1418
1519- :rocket : Add interactive subcommand selection
Original file line number Diff line number Diff line change @@ -135,23 +135,16 @@ export default class MissionLayerCommands extends Commands {
135135 name : string ,
136136 opts ?: Static < typeof MissionOptions >
137137 ) : Promise < Static < typeof TAKList_MissionLayer > > {
138- let res ;
138+ // TODO: This is an issue due to: https://issues.tak.gov/browse/TKS-1023
139+ if ( this . #isGUID( name ) ) name = ( await this . api . Mission . getGuid ( name , { } , opts ) ) . name ;
140+ //const url = new URL(`/Marti/api/missions/guid/${this.#encodeName(name)}/layers`, this.api.url);
139141
140- if ( this . #isGUID( name ) ) {
141- const url = new URL ( `/Marti/api/missions/guid/${ this . #encodeName( name ) } /layers` , this . api . url ) ;
142+ const url = new URL ( `/Marti/api/missions/${ this . #encodeName( name ) } /layers` , this . api . url ) ;
142143
143- res = await this . api . fetch ( url , {
144- method : 'GET' ,
145- headers : this . #headers( opts ) ,
146- } ) ;
147- } else {
148- const url = new URL ( `/Marti/api/missions/${ this . #encodeName( name ) } /layers` , this . api . url ) ;
149-
150- res = await this . api . fetch ( url , {
151- method : 'GET' ,
152- headers : this . #headers( opts ) ,
153- } ) ;
154- }
144+ const res = await this . api . fetch ( url , {
145+ method : 'GET' ,
146+ headers : this . #headers( opts ) ,
147+ } ) ;
155148
156149 res . data . map ( ( l : Static < typeof MissionLayer > ) => {
157150 if ( l . type === MissionLayerType . UID && ! l . uids ) {
Original file line number Diff line number Diff line change @@ -74,8 +74,6 @@ export class APIAuthToken extends APIAuth {
7474 opts . headers . Authorization = `Bearer ${ this . jwt } ` ;
7575 }
7676
77- console . error ( 'OPTIONS' , opts ) ;
78-
7977 return await fetch ( url , opts ) ;
8078 }
8179}
You can’t perform that action at this time.
0 commit comments