From 28b4fbcb2efdbcf8359f70dce24d7c9d9cd7d59f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20H=C3=B8rl=C3=BCck=20Berg?= <36937807+henrikhorluck@users.noreply.github.com> Date: Thu, 2 Nov 2023 14:08:37 +0100 Subject: [PATCH] Fix spelling error making search field not work --- assets/dashboard/core/Gallery.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/dashboard/core/Gallery.js b/assets/dashboard/core/Gallery.js index d3a6e86b3..e949cd61d 100644 --- a/assets/dashboard/core/Gallery.js +++ b/assets/dashboard/core/Gallery.js @@ -146,7 +146,7 @@ const Gallery = (function PrivateGallery($) { Gallery.ajax('GET', `/api/v1/images/?query=${query}${preset ? `&preset=${preset}` : ''}`, null, (data) => { const images = data.results.map(image => ({ ...image, - timestamp: new Intl.DateTimeFormat("nb-NO", { dateStyle: "short", timeStyle: "medium" }).format(new Date(image.timpstamp)), + timestamp: new Intl.DateTimeFormat("nb-NO", { dateStyle: "short", timeStyle: "medium" }).format(new Date(image.timestamp)), })); let html = render(TMPL_IMAGE_SEARCH_RESULT, { images }); if (!data.results.length) html = '
Ingen bilder matchet søket...