File tree Expand file tree Collapse file tree
src/components/libs/featurevisor Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -713,7 +713,7 @@ sub refresh()
713713 m ._statuses .refreshInProgress = true
714714
715715 chain = createRequest ("FeaturevisorRequest" , { datafileUrl : m ._datafileUrl })
716- chain .then (function (datafile as Object )
716+ chain = chain .then (function (datafile as Object )
717717 previousRevisionNumber = getRevision ()
718718 setDatafile (datafile )
719719
@@ -723,7 +723,10 @@ sub refresh()
723723 }
724724 end function , sub (error as Object )
725725 print "Featurevisor - failed to refresh datafile: " ;error
726- end sub ).then (sub (data as Object , m as Object )
726+ end sub )
727+ chain = chain .then (sub (data as Object , m as Object )
728+ if (data = Invalid ) then return
729+
727730 m .top .refreshed = {}
728731
729732 if (data .previousRevisionNumber <> data .datafile .revision )
You can’t perform that action at this time.
0 commit comments