Skip to content

Commit 26c3ebc

Browse files
committed
fix(ui): remove useless datacenter name watch
There is no reason the datacenter props name change during the lifetime of this view.
1 parent ed5a5a2 commit 26c3ebc

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

Diff for: racksdb/web/ui/src/views/DatacenterDetailsView.vue

-8
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,6 @@ onMounted(() => {
5757
getDatacenters()
5858
})
5959

60-
// Using watch to trigger getDatacenter() when the value of props.name change
61-
watch(
62-
() => props.name,
63-
() => {
64-
getDatacenters()
65-
}
66-
)
67-
6860
const props = defineProps({
6961
name: String
7062
})

0 commit comments

Comments
 (0)