mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	fix displaying 1 / 0 in find widget
This commit is contained in:
		| @@ -115,7 +115,7 @@ export default class FindInCode { | |||||||
|  |  | ||||||
|         return { |         return { | ||||||
|             totalFound, |             totalFound, | ||||||
|             currentFound: currentFound + 1 |             currentFound: Math.min(currentFound + 1, totalFound) | ||||||
|         }; |         }; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|   | |||||||
| @@ -39,7 +39,7 @@ export default class FindInHtml { | |||||||
|  |  | ||||||
|                             res({ |                             res({ | ||||||
|                                 totalFound: this.$results.length, |                                 totalFound: this.$results.length, | ||||||
|                                 currentFound: 1 |                                 currentFound: Math.min(1, this.$results.length) | ||||||
|                             }); |                             }); | ||||||
|                         } |                         } | ||||||
|                     }); |                     }); | ||||||
|   | |||||||
| @@ -59,7 +59,7 @@ export default class FindInText { | |||||||
|  |  | ||||||
|         return { |         return { | ||||||
|             totalFound, |             totalFound, | ||||||
|             currentFound: currentFound + 1 |             currentFound: Math.min(currentFound + 1, totalFound) | ||||||
|         }; |         }; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user