We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf522b0 commit 75ecb4dCopy full SHA for 75ecb4d
ui/src/components/view/ImageDeployInstanceButton.vue
@@ -64,11 +64,13 @@ export default {
64
osCategoryId: null
65
}
66
},
67
- created () {
+ mounted () {
68
if (this.$route.meta.name === 'iso') {
69
this.imageApi = 'listIsos'
70
71
- this.fetchData()
+ setTimeout(() => {
72
+ this.fetchData()
73
+ }, 100)
74
75
computed: {
76
allowed () {
@@ -130,7 +132,7 @@ export default {
130
132
fetchOsCategoryIdIfNeeded () {
131
133
const needed = this.allowed &&
134
'listOsTypes' in this.$store.getters.apis &&
- this.resource && this.resource.ostypeid &&
135
+ !!this.resource && !!this.resource.ostypeid &&
136
(this.$config.imageSelectionInterface === undefined ||
137
this.$config.imageSelectionInterface === 'modern')
138
if (!needed) {
0 commit comments