File tree Expand file tree Collapse file tree
src/main/js/bundles/mapapps-github-manager Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -119,15 +119,13 @@ export default declare([_Connect], {
119119 let content ;
120120
121121 if ( response . data . length ) {
122-
123- response . data . sort ( function ( a , b ) {
124- return parseFloat ( b . name ) - parseFloat ( a . name ) ;
125- } )
122+ const releases = response . data . filter ( ( release ) => ! release . name . includes ( "SNAPSHOT" ) ) ;
123+ releases . sort ( ( a , b ) => parseFloat ( b . name ) - parseFloat ( a . name ) )
126124
127125 const tagsStore = new ComplexMemory ( {
128126 id : id ,
129127 idProperty : "name" ,
130- data : response . data // version contained here
128+ data : releases // version contained here
131129 } ) ;
132130
133131 this . bCtx . registerService ( [ "ct.api.Store" ] , tagsStore , {
@@ -188,8 +186,8 @@ export default declare([_Connect], {
188186 }
189187 if ( tag ) {
190188 const url = "https://github.com/conterra/" + item . name
191- + "/releases/download/" + tag + "/"
192- + item . name + "-bundle.zip" ;
189+ + "/releases/download/" + tag + "/"
190+ + item . name + "-bundle.zip" ;
193191 this . buttonWidget . set ( "label" , this . i18n . downloading ) ;
194192
195193
You can’t perform that action at this time.
0 commit comments