mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-23 02:35:17 +01:00
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:
parent
c31fb5ddf2
commit
cb79d1c38b
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user