Fix redirect on delete
This commit is contained in:
parent
3a58aa624f
commit
426f63271b
|
@ -34,7 +34,9 @@
|
||||||
async function deleteView() {
|
async function deleteView() {
|
||||||
try {
|
try {
|
||||||
const isSelected =
|
const isSelected =
|
||||||
decodeURIComponent($params.viewName) === $views.selectedViewName
|
view.tableId === $views.selected.tableId &&
|
||||||
|
view.name === $views.selected.name
|
||||||
|
|
||||||
const { tableId } = view
|
const { tableId } = view
|
||||||
await views.delete(view)
|
await views.delete(view)
|
||||||
notifications.success("View deleted")
|
notifications.success("View deleted")
|
||||||
|
|
Loading…
Reference in New Issue