File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,10 @@ const TitledHOC = function (WrappedComponent) {
27
27
if ( this . props . projectTitle !== prevProps . projectTitle ) {
28
28
this . handleReceivedProjectTitle ( this . props . projectTitle ) ;
29
29
}
30
+ if ( this . props . isShowingWithoutId && ! prevProps . isShowingWithoutId ) {
31
+ const defaultProjectTitle = this . handleReceivedProjectTitle ( ) ;
32
+ this . props . onUpdateProjectTitle ( defaultProjectTitle ) ;
33
+ }
30
34
// if the projectTitle hasn't changed, but the reduxProjectTitle
31
35
// HAS changed, we need to report that change to the projectTitle's owner
32
36
if ( this . props . reduxProjectTitle !== prevProps . reduxProjectTitle &&
@@ -40,6 +44,7 @@ const TitledHOC = function (WrappedComponent) {
40
44
newTitle = this . props . intl . formatMessage ( messages . defaultProjectTitle ) ;
41
45
}
42
46
this . props . onChangedProjectTitle ( newTitle ) ;
47
+ return newTitle ;
43
48
}
44
49
render ( ) {
45
50
const {
You can’t perform that action at this time.
0 commit comments