Skip to content

Commit

Permalink
Fix spelling error making search field not work
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikhorluck committed Nov 2, 2023
1 parent 0157c91 commit 28b4fbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/dashboard/core/Gallery.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '<div class="col-md-12"><p>Ingen bilder matchet søket...</p></div></div>';
Expand Down

0 comments on commit 28b4fbc

Please sign in to comment.