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 ce783e8 commit 4e1cde0Copy full SHA for 4e1cde0
src/views/schema/upstream/edit.vue
@@ -255,7 +255,7 @@ export default class extends Vue {
255
const nodes = {}
256
this.form.nodes.map((item: any) => {
257
if (item.ip && item.port && String(item.weights)) {
258
- nodes[`${item.ip}:${item.port}`] = Number(item.weights)
+ nodes[`${item.ip}:${item.port}`] = Number(item.weights || 1)
259
}
260
})
261
0 commit comments