SIGN IN SIGN UP
payloadcms / payload UNCLAIMED

Payload is the open-source, fullstack Next.js framework, giving you instant backend superpowers. Get a full TypeScript backend and admin panel instantly. Use Payload as a headless CMS or for building powerful applications.

0 0 12 TypeScript

chore(templates): remove redundant condition check (#12130)

<!--

Thank you for the PR! Please go through the checklist below and make
sure you've completed all the steps.

Please review the
[CONTRIBUTING.md](https://github.com/payloadcms/payload/blob/main/CONTRIBUTING.md)
document in this repository if you haven't already.

The following items will ensure that your PR is handled as smoothly as
possible:

- PR Title must follow conventional commits format. For example, `feat:
my new feature`, `fix(plugin-seo): my fix`.
- Minimal description explained as if explained to someone not
immediately familiar with the code.
- Provide before/after screenshots or code diffs if applicable.
- Link any related issues/discussions from GitHub or Discord.
- Add review comments if necessary to explain to the reviewer the logic
behind a change

### What?

### Why?

### How?

Fixes #

-->
This PR fixes a redundant condition check on the Card element

from:
```typescript
     <div className="p-4">
        {showCategories && hasCategories && (
          <div className="uppercase text-sm mb-4">
             {showCategories && hasCategories && (
              <div>
...
```

to:
```typescript
     <div className="p-4">
        {showCategories && hasCategories && (
          <div className="uppercase text-sm mb-4">
...
```

Co-authored-by: Paul Popus <paul@payloadcms.com>
E
Eduardo Würch committed
cf0a8838eb970fc4d399ce3a0a481d6d2ae2e6de
Parent: 750d29f
Committed by GitHub <noreply@github.com> on 4/2/2026, 7:44:11 PM