Exploring an alternative to my ternary logic:
mode === 'edition' ? (this.editionMode = true, this.creationMode = false) : (this.creationMode = true, this.editionMode = false)
I believe there might be a more efficient way to write this ternary. Any suggestions or improvements would be greatly appreciated. Thank you!