mirror of
https://github.com/wassname/talk.git
synced 2026-07-01 23:34:14 +08:00
Merge branch 'master' into bump-version-3-8-0
This commit is contained in:
@@ -71,10 +71,10 @@ class ModerationContainer extends Component {
|
||||
const id = getAssetId(this.props);
|
||||
const tab = getTab(this.props);
|
||||
|
||||
// Grab premod from asset or from settings
|
||||
const premod = !id ? settings.moderation : asset.settings.moderation;
|
||||
// Grab premod from asset or from settings if it's defined.
|
||||
const setting = id && asset && asset.settings ? asset.settings.moderation : settings.moderation;
|
||||
|
||||
const queue = isPremod(premod) ? 'premod' : 'new';
|
||||
const queue = isPremod(setting) ? 'premod' : 'new';
|
||||
const activeTab = tab ? tab : queue;
|
||||
|
||||
return activeTab;
|
||||
|
||||
Reference in New Issue
Block a user