mirror of https://github.com/rancher/ui.git
Fix global registry bug
This commit is contained in:
parent
ecacce2f82
commit
88fd2b4dea
|
|
@ -28,9 +28,9 @@ export default Component.extend(ViewNewEdit, OptionallyNamespaced, {
|
|||
if (get(this, 'model.type') === 'namespacedDockerCredential') {
|
||||
set(this, 'scope', 'namespace');
|
||||
}
|
||||
const globalRegistryEnabled = get(this, 'globalStore').all('setting').findBy('id', 'global-registry-enabled')
|
||||
const globalRegistryEnabled = get(this, 'globalStore').all('setting').findBy('id', 'global-registry-enabled') || {};
|
||||
|
||||
set(this, 'globalRegistryEnabled', globalRegistryEnabled)
|
||||
set(this, 'globalRegistryEnabled', get(globalRegistryEnabled, 'value') === 'true')
|
||||
|
||||
let asArray = JSON.parse(JSON.stringify(get(this, 'model.asArray') || []))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue