mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-12 10:55:51 +02:00
fix: read properties of null in NodeSelector
This commit is contained in:
parent
53e1c32444
commit
591486a689
2 changed files with 4 additions and 4 deletions
|
@ -229,7 +229,7 @@ func SaveDomain(c *gin.Context) {
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
// recreate soft link
|
// recreate a soft link
|
||||||
if helper.FileExists(enabledConfigFilePath) {
|
if helper.FileExists(enabledConfigFilePath) {
|
||||||
_ = os.Remove(enabledConfigFilePath)
|
_ = os.Remove(enabledConfigFilePath)
|
||||||
enabledConfigFilePath = nginx.GetConfPath("sites-enabled", json.Name)
|
enabledConfigFilePath = nginx.GetConfPath("sites-enabled", json.Name)
|
||||||
|
|
|
@ -19,7 +19,7 @@ const data_map = ref({}) as Ref<Record<number, Environment>>
|
||||||
|
|
||||||
environment.get_list().then(r => {
|
environment.get_list().then(r => {
|
||||||
data.value = r.data
|
data.value = r.data
|
||||||
r.data.forEach(node => {
|
r.data?.forEach(node => {
|
||||||
data_map.value[node.id] = node
|
data_map.value[node.id] = node
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
@ -79,7 +79,7 @@ const value = computed({
|
||||||
</ATag>
|
</ATag>
|
||||||
</ACol>
|
</ACol>
|
||||||
</ARow>
|
</ARow>
|
||||||
<AEmpty v-if="hiddenLocal && data.length === 0" />
|
<AEmpty v-if="hiddenLocal && data?.length === 0" />
|
||||||
</ACheckboxGroup>
|
</ACheckboxGroup>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue