ui: disable github/array-foreach rule

This commit is contained in:
undefined committed 2024-01-26 02:31:51 +08:00
1 parent 5d8eb26436
commit a52c136387
4 files changed
+21 -20

No files matched your search

+2 -2
View File
@@ -90,7 +90,7 @@ pjax.request = async (opt) => {
window.history.replaceState(currentState, null, meta.url);
}
if (meta.title) document.title = meta.title;
data.fragments.forEach((fragment) => {
for (const fragment of data.fragments) {
if (process.env.NODE_ENV !== 'production') {
if (fragment.html === undefined) {
throw new Error("Fragement should contain 'html'");
@@ -117,7 +117,7 @@ pjax.request = async (opt) => {
$target.trigger('vjContentRemove');
$target.replaceWith($el);
$el.trigger('vjContentNew');
});
}
} catch (err) {
if (!err.aborted) {
Notification.error(err.message);