File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export default Controller.extend({
11
11
model : readOnly ( 'dataTask.lastSuccessful.value' ) ,
12
12
13
13
hasData : computed ( 'dataTask.{lastSuccessful,isRunning}' , function ( ) {
14
- return this . get ( 'dataTask.lastSuccessful' ) || ! this . get ( 'dataTask.isRunning' ) ;
14
+ return this . get ( 'dataTask.lastSuccessful' ) && ! this . get ( 'dataTask.isRunning' ) ;
15
15
} ) ,
16
16
17
17
dataTask : task ( function * ( ) {
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export default Route.extend({
17
17
} ,
18
18
19
19
setupController ( controller ) {
20
- if ( ! controller . dataTask . hasData ) {
20
+ if ( ! controller . hasData ) {
21
21
let promise = controller . dataTask . perform ( ) ;
22
22
if ( this . fastboot . isFastBoot ) {
23
23
this . fastboot . deferRendering ( promise ) ;
You can’t perform that action at this time.
0 commit comments