|  | @@ -843,18 +843,19 @@ export const getNoteByMeasuresSlursStart = (note: any) => {
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  export const getActtiveNoteByTimes = (evt: MouseEvent) => {
 | 
	
		
			
				|  |  | -  const el = (evt.target as HTMLDivElement)?.dataset
 | 
	
		
			
				|  |  | -  // console.log(state)
 | 
	
		
			
				|  |  | +	const el = (evt.target as HTMLDivElement)?.dataset;
 | 
	
		
			
				|  |  | +	// console.log(state)
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -  const data: any = {}
 | 
	
		
			
				|  |  | -  for (const time of state.times) {
 | 
	
		
			
				|  |  | -    if (time.id) {
 | 
	
		
			
				|  |  | -      data[time.id] = time
 | 
	
		
			
				|  |  | -    }
 | 
	
		
			
				|  |  | -  }
 | 
	
		
			
				|  |  | -  const activeNote = data[el.id || '']
 | 
	
		
			
				|  |  | -  return activeNote
 | 
	
		
			
				|  |  | -}
 | 
	
		
			
				|  |  | +	const data: any = {};
 | 
	
		
			
				|  |  | +	for (const time of state.times) {
 | 
	
		
			
				|  |  | +		if (time.id && !data[time.id]) {
 | 
	
		
			
				|  |  | +			data[time.id] = time;
 | 
	
		
			
				|  |  | +		}
 | 
	
		
			
				|  |  | +	}
 | 
	
		
			
				|  |  | +	const activeNote = data[el.id || ""];
 | 
	
		
			
				|  |  | +	// state.timesById = data
 | 
	
		
			
				|  |  | +	return activeNote;
 | 
	
		
			
				|  |  | +};
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  const getPrevHasSourceNote = (note: any) => {
 | 
	
		
			
				|  |  |    const indexOf = Math.max(state.times.indexOf(note) - 1, 0)
 |