• Nick Stenning's avatar
    Don't reset the sortKey unless actually switching tabs · 2289e1c2
    Nick Stenning authored
    Creating a new annotation or page note would reset the sortKey for the
    sidebar to the default, because doing so can trigger a call to
    `selectTab`.
    
    This change ensures that we shortcut the state update if we're already
    on the correct tab, and don't update `sortKey` in that case.
    2289e1c2
Name
Last commit
Last update
.github Loading commit data...
docs Loading commit data...
h Loading commit data...
images Loading commit data...
scripts Loading commit data...
.eslintignore Loading commit data...
.eslintrc Loading commit data...
.gitignore Loading commit data...
.npmignore Loading commit data...
.npmrc Loading commit data...
.travis.yml Loading commit data...
CHANGELOG.md Loading commit data...
CODE_OF_CONDUCT Loading commit data...
Jenkinsfile Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
gulpfile.js Loading commit data...
npm-shrinkwrap.json Loading commit data...
package.json Loading commit data...