mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-11-03 19:07:00 -05:00 
			
		
		
		
	Fixed crash
This commit is contained in:
		
							parent
							
								
									65aec6a099
								
							
						
					
					
						commit
						a1074e69ac
					
				@ -337,12 +337,12 @@ export default {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
      const lastChapter = this.newChapters[this.newChapters.length - 1]
 | 
					      const lastChapter = this.newChapters[this.newChapters.length - 1]
 | 
				
			||||||
      if (lastChapter.start + amount > this.mediaDurationRounded) {
 | 
					      if (lastChapter.start + amount > this.mediaDurationRounded) {
 | 
				
			||||||
        this.$toast.error($strings.ToastInvalidShiftAmountLast)
 | 
					        this.$toast.error(this.$strings.ToastInvalidShiftAmountLast)
 | 
				
			||||||
        return
 | 
					        return
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      if (this.newChapters[1].start + amount <= 0) {
 | 
					      if (this.newChapters[1].start + amount <= 0) {
 | 
				
			||||||
        this.$toast.error($strings.ToastInvalidShiftAmountStart)
 | 
					        this.$toast.error(this.$strings.ToastInvalidShiftAmountStart)
 | 
				
			||||||
        return
 | 
					        return
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user