Skip to content

Commit 41af803

Browse files
committed
Added page reload in case of error in /rules
1 parent cd75f37 commit 41af803

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

frontend/src/views/RulesView.vue

+5-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ const fetchItems = async (path) => {
1818
items.value = res.data;
1919
} catch (error) {
2020
console.error("Error fetching items:", error);
21-
router.push({ name: "rules" });
21+
22+
router.push({ name: "rules" }).then(() => {
23+
// Reload the page after redirecting
24+
window.location.reload();
25+
});
2226
}
2327
};
2428

0 commit comments

Comments
 (0)