|
@@ -15,13 +15,6 @@ import {
|
15
|
15
|
} from '../action-creator.async.js'
|
16
|
16
|
|
17
|
17
|
class WorkspaceContent extends React.Component {
|
18
|
|
- constructor (props) {
|
19
|
|
- super(props)
|
20
|
|
- this.state = {
|
21
|
|
- activeFileType: ''
|
22
|
|
- }
|
23
|
|
- }
|
24
|
|
-
|
25
|
18
|
componentDidMount () {
|
26
|
19
|
const { workspaceList, app, match, dispatch } = this.props
|
27
|
20
|
|
|
@@ -33,7 +26,6 @@ class WorkspaceContent extends React.Component {
|
33
|
26
|
|
34
|
27
|
componentDidUpdate (prevProps) {
|
35
|
28
|
const { workspace, workspaceList, match, dispatch } = this.props
|
36
|
|
- console.log('workspaceContent update', prevProps, this.props)
|
37
|
29
|
|
38
|
30
|
// if a workspace is already loaded and the idws in url hasn't changed, do nothing
|
39
|
31
|
if (workspace.id !== -1 && prevProps.match.params.idws === match.params.idws) return
|