We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd800ea commit 9fc4d44Copy full SHA for 9fc4d44
src/app/series/[id]/editions/[editionID]/page.js
@@ -39,13 +39,11 @@ export default async function Edition({ params, searchParams }) {
39
}
40
41
let unpublishedVersion = false;
42
- if (versions?.items) {
43
- versions.items.forEach(item => {
44
- if (item.state != "published") {
45
- unpublishedVersion = true;
46
- }
47
- });
48
+ versions?.items?.forEach(item => {
+ if (item.state !== "published") {
+ unpublishedVersion = true;
+ }
+ });
49
50
const renderVersionsList = () => {
51
if (versionsError) {
0 commit comments