Bug/fix infinite loop (#512)

* fix infinite loop with safe get method

* fix ingredients

Co-authored-by: hay-kot <hay-kot@pm.me>
This commit is contained in:
Hayden
2021-06-13 14:07:58 -08:00
committed by GitHub
parent 2dc9c8e843
commit af41b08a60
7 changed files with 88 additions and 47 deletions

View File

@@ -18,6 +18,7 @@ export const routes = [
...mealRoutes,
...recipeRoutes,
{ path: "/page-not-found", component: Page404 },
{ path: "*", component: Page404 },
];
@@ -31,7 +32,7 @@ const router = new VueRouter({
});
const DEFAULT_TITLE = "Mealie";
const TITLE_SEPARATOR = "🍴";
const TITLE_SEPARATOR = "|";
const TITLE_SUFFIX = " " + TITLE_SEPARATOR + " " + DEFAULT_TITLE;
router.afterEach(to => {
Vue.nextTick(async () => {