Skip to content

Commit

Permalink
fix: environment indicator display overlay & edit not obtain newest d…
Browse files Browse the repository at this point in the history
…ata (#152)

Co-authored-by: 0xJacky <me@jackyu.cn>
  • Loading branch information
quanbisen and 0xJacky authored Aug 7, 2023
1 parent b257edd commit 5654033
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 2 additions & 0 deletions frontend/src/components/EnvIndicator/EnvIndicator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ watch(node_id, async () => {
.env-name {
max-width: 50px;
text-overflow: ellipsis;
white-space: nowrap;
}
.ant-tag {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/StdDataDisplay/StdCurd.vue
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ const ok = async () => {
message.success($gettext('Save Successfully'))
Object.assign(data, r)
get_list()
visible.value = false
}).catch((e: any) => {
message.error($gettext(e?.message ?? 'Server error'), 5)
Object.assign(error, e.errors)
Expand Down
6 changes: 2 additions & 4 deletions server/internal/analytic/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,9 @@ func GetNode(env *model.Environment) (n *Node) {
}
n, ok := NodeMap[env.ID]
if !ok {
n = &Node{
Environment: env,
}
n = &Node{}
}

n.Environment = env
return n
}

Expand Down

0 comments on commit 5654033

Please sign in to comment.