Skip to content

Commit

Permalink
Apply small fixes from code review
Browse files Browse the repository at this point in the history
Co-authored-by: mab <git@ma-b.com>
  • Loading branch information
dtrucs and mabhub committed Apr 2, 2024
1 parent 3b4a132 commit 604d1fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/pages/flatPage/FlatPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export const FlatPageUI: React.FC<FlatPageUIProps> = ({ flatPageUrl }) => {
<FormattedMessage id="page.children.title" />
</h2>
<ul className="mb-6 desktop:mb-18 flex flex-wrap gap-5 desktop:grid desktop:grid-cols-3 desktop:gap-6">
{flatPage.children?.map(child => (
{flatPage.children.map(child => (
<li className="w-70 desktop:w-auto" key={child.id}>
<a
className="relative block rounded-xl overflow-hidden group after:absolute bg-gradient-to-t from-gradientOnImages after:inset-0 after:content-[''] after:bg-black/25"
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/modules/flatpage/connector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const getFlatPageDetails = async (
language: string,
commonDictionaries?: CommonDictionaries,
): Promise<FlatPageDetails> => {
const { sources = {} } = commonDictionaries ?? {};
const { sources = {} } = commonDictionaries || {};
let rawFlatPageDetails, rawFlatPageChildrenDetails;
try {
rawFlatPageDetails = await fetchFlatPageDetails({ language }, id);
Expand Down

0 comments on commit 604d1fd

Please sign in to comment.