You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-20 16:22:28 +03:00
Null-guard for newTag
This commit is contained in:
@@ -313,7 +313,7 @@ module.exports = React.createClass({
|
|||||||
const newOrder = {};
|
const newOrder = {};
|
||||||
|
|
||||||
// Is the tag ordered manually?
|
// Is the tag ordered manually?
|
||||||
if (!newTag.match(/^(m\.lowpriority|im\.vector\.fake\.(invite|recent|direct|archived))$/)) {
|
if (newTag && !newTag.match(/^(m\.lowpriority|im\.vector\.fake\.(invite|recent|direct|archived))$/)) {
|
||||||
const newList = Object.assign({}, this.state.lists[newTag]);
|
const newList = Object.assign({}, this.state.lists[newTag]);
|
||||||
|
|
||||||
// If the room was moved "down" (increasing index) in the same list we
|
// If the room was moved "down" (increasing index) in the same list we
|
||||||
|
|||||||
Reference in New Issue
Block a user