Skip to content

Commit

Permalink
Merge pull request #72 from wwsalmon/dev
Browse files Browse the repository at this point in the history
0.24.4
  • Loading branch information
wwsalmon authored Jan 19, 2022
2 parents 94a1943 + e94364e commit a13e6c3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions components/project/NodeInner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,20 +82,20 @@ export default function NodeInner(props: PublicNodePageProps & {isModal?: boolea

const {
body: {
publishedTitle,
publishedNotes,
publishedSummary,
publishedTakeaways,
publishedSourceInfo,
},
} = (pageNode.type === "source" && "urlName" in pageNode.body) ? pageNode as NodeObjSourcePublic : {body: {publishedTitle: false, publishedNotes: false, publishedSummary: false, publishedTakeaways: false, publishedSourceInfo: false}};
} = (pageNode.type === "source" && ("urlName" in pageNode.body)) ? pageNode as NodeObjSourcePublic : {body: {publishedNotes: false, publishedSummary: false, publishedTakeaways: false, publishedSourceInfo: false}};

const {
body: {
publishedTitle,
publishedDate,
lastPublishedDate
}
} = "urlName" in pageNode.body ? pageNode as NodeObjPublic : {body: {publishedDate: false, lastPublishedDate: false}};
} = "urlName" in pageNode.body ? pageNode as NodeObjPublic : {body: {publishedTitle: false, publishedDate: false, lastPublishedDate: false}};

const {
body: {
Expand All @@ -112,7 +112,7 @@ export default function NodeInner(props: PublicNodePageProps & {isModal?: boolea
const isPost = pageNode.type === "post";
const isSource = pageNode.type === "source";
const isOwner = thisUser && pageNode.userId === thisUser._id;
const isPublished = !!publishedTitle;
const isPublished = "urlName" in pageNode.body;
const isExternal = !!pageNode.shortcutArr;
const originalProject = isExternal && pageNode.orrProjectArr[0];
const title = publishedTitle || privateTitle;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "updately-pro",
"version": "0.24.3",
"version": "0.24.4",
"private": true,
"scripts": {
"dev": "next dev",
Expand Down

1 comment on commit a13e6c3

@vercel
Copy link

@vercel vercel bot commented on a13e6c3 Jan 19, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.