forked from CIT/Vmeda.Online
		
	MOBILE-4081 database: Fix entry.id is undefined after change group
This commit is contained in:
		
							parent
							
								
									413b69832b
								
							
						
					
					
						commit
						2afa7918b1
					
				@ -352,6 +352,7 @@ export class AddonModDataEntryPage implements OnInit, OnDestroy {
 | 
				
			|||||||
        if (this.offset === undefined) {
 | 
					        if (this.offset === undefined) {
 | 
				
			||||||
            // No offset passed, display the first entry.
 | 
					            // No offset passed, display the first entry.
 | 
				
			||||||
            pageIndex = 0;
 | 
					            pageIndex = 0;
 | 
				
			||||||
 | 
					            this.offset = 0;
 | 
				
			||||||
        } else if (this.offset > 0) {
 | 
					        } else if (this.offset > 0) {
 | 
				
			||||||
            // Online entry.
 | 
					            // Online entry.
 | 
				
			||||||
            pageIndex = this.offset % perPage + (entries.offlineEntries?.length || 0);
 | 
					            pageIndex = this.offset % perPage + (entries.offlineEntries?.length || 0);
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user