fix (admin): broken link with locale package

This commit is contained in:
MickaelK 2024-05-28 19:11:56 +10:00
parent 76b44f3c18
commit a0cb495ce5
2 changed files with 3 additions and 2 deletions

View file

@ -5,6 +5,7 @@ import { qs, qsa } from "../../lib/dom.js";
import { ApplicationError } from "../../lib/error.js";
import { formTmpl } from "../../components/form.js";
import { generateSkeleton } from "../../components/skeleton.js";
import ctrlError from "../ctrl_error.js";
import {
getState,
@ -266,4 +267,5 @@ export default async function(render) {
const saveMiddleware = () => rxjs.pipe(
rxjs.mergeMap(() => getState()),
saveConfig(),
rxjs.catchError(ctrlError()),
);

View file

@ -2,7 +2,6 @@ import { createElement } from "../../lib/skeleton/index.js";
import rxjs, { effect, applyMutation } from "../../lib/rx.js";
import { qsa } from "../../lib/dom.js";
import { createForm, mutateForm } from "../../lib/form.js";
import t from "../../lib/locales.js";
import { generateSkeleton } from "../../components/skeleton.js";
import notification from "../../components/notification.js";
import { formTmpl } from "../../components/form.js";
@ -54,7 +53,7 @@ export default function(render) {
)),
saveConfig(),
rxjs.catchError((err) => {
notification.error((err && err.message) || t("Oops"));
notification.error((err && err.message) || "Oops");
return rxjs.EMPTY;
}),
));