Skip to content

Commit

Permalink
Merge branch 'master' into renovate/lucide-react-0.x
Browse files Browse the repository at this point in the history
  • Loading branch information
suyalcinkaya authored Feb 18, 2024
2 parents dda6521 + b45924e commit 440bd4b
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
name: CI

on: push
on:
pull_request_target:
types:
- opened
- edited
- synchronize

jobs:
build:
eslint:
name: Lint code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint-pr.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'Lint PR'
name: Lint PR

on:
pull_request_target:
Expand Down
2 changes: 1 addition & 1 deletion src/app/bookmarks/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default async function BookmarksLayout({ children }) {
<SideMenu title="Bookmarks" href="/bookmarks" isInner>
<Suspense fallback={<LoadingSpinner />}>
<div className="flex flex-col gap-1 text-sm">
{collections.map((collection) => {
{collections?.map((collection) => {
return (
<ListItem
key={collection._id}
Expand Down
2 changes: 1 addition & 1 deletion src/app/bookmarks/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default async function Writing() {
<ScrollArea className="flex flex-col lg:hidden">
<FloatingHeader title="Bookmarks" />
<div>
{collections.map((collection) => {
{collections?.map((collection) => {
return (
<Link
key={collection._id}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export const isDevelopment = process.env.NODE_ENV === 'development'
* @returns The sorted array in ascending order based on the specified property.
*/
export const sortByProperty = (arr, prop) => {
return arr.sort((a, b) => {
return arr?.sort((a, b) => {
const itemA = a[prop].toUpperCase()
const itemB = b[prop].toUpperCase()

Expand Down

0 comments on commit 440bd4b

Please sign in to comment.