Fix bugs on configuration save

When configuration saving, an error undefined no atrribute toString will occur. This commit will fix it.
This commit is contained in:
Deng, Qian 2018-04-17 20:12:34 +08:00
parent c31fb5ddf2
commit cb79d1c38b

View File

@ -266,7 +266,7 @@ export class ConfigurationComponent implements OnInit, OnDestroy {
this.msgHandler.handleReadOnly();
}
if (changes['read_only'].toString() === "false") {
if (changes['read_only'] && changes['read_only'].toString() === "false") {
this.msgHandler.clear();
}