mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	formatting
This commit is contained in:
		| @@ -155,16 +155,16 @@ export default class RootCommandExecutor extends Component { | |||||||
|         } |         } | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     firstTabCommand() {this.#goToTab(1);} |     firstTabCommand()   { this.#goToTab(1); } | ||||||
|     secondTabCommand() {this.#goToTab(2);} |     secondTabCommand()  { this.#goToTab(2); } | ||||||
|     thirdTabCommand() {this.#goToTab(3);} |     thirdTabCommand()   { this.#goToTab(3); } | ||||||
|     fourthTabCommand() {this.#goToTab(4);} |     fourthTabCommand()  { this.#goToTab(4); } | ||||||
|     fifthTabCommand() {this.#goToTab(5);} |     fifthTabCommand()   { this.#goToTab(5); } | ||||||
|     sixthTabCommand() {this.#goToTab(6);} |     sixthTabCommand()   { this.#goToTab(6); } | ||||||
|     seventhTabCommand() {this.#goToTab(7);} |     seventhTabCommand() { this.#goToTab(7); } | ||||||
|     eigthTabCommand() {this.#goToTab(8);} |     eigthTabCommand()   { this.#goToTab(8); } | ||||||
|     ninthTabCommand() {this.#goToTab(9);} |     ninthTabCommand()   { this.#goToTab(9); } | ||||||
|     lastTabCommand() {this.#goToTab(Number.POSITIVE_INFINITY);} |     lastTabCommand()    { this.#goToTab(Number.POSITIVE_INFINITY); } | ||||||
|  |  | ||||||
|     #goToTab(tabNumber) { |     #goToTab(tabNumber) { | ||||||
|         const mainNoteContexts = appContext.tabManager.getMainNoteContexts(); |         const mainNoteContexts = appContext.tabManager.getMainNoteContexts(); | ||||||
| @@ -172,6 +172,8 @@ export default class RootCommandExecutor extends Component { | |||||||
|         const index = tabNumber === Number.POSITIVE_INFINITY ? mainNoteContexts.length - 1 : tabNumber - 1; |         const index = tabNumber === Number.POSITIVE_INFINITY ? mainNoteContexts.length - 1 : tabNumber - 1; | ||||||
|         const tab = mainNoteContexts[index]; |         const tab = mainNoteContexts[index]; | ||||||
|  |  | ||||||
|         appContext.tabManager.activateNoteContext(tab.ntxId); |         if (tab) { | ||||||
|  |             appContext.tabManager.activateNoteContext(tab.ntxId); | ||||||
|  |         } | ||||||
|     } |     } | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user