Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempted to fix server error #190

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ecency-vision-next",
"version": "4.0.1",
"version": "4.0.2",
"private": true,
"scripts": {
"dev": "next dev",
Expand Down
3 changes: 3 additions & 0 deletions sentry.client.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@
// https://docs.sentry.io/platforms/javascript/guides/nextjs/

import * as Sentry from "@sentry/nextjs";
import appPackage from "./package.json";

Sentry.init({
dsn: "https://8a5c1659d1c2ba3385be28dc7235ce56@o4507985141956608.ingest.de.sentry.io/4507985146609744",

// Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control.
tracesSampleRate: 1,

release: appPackage.version,

// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: false
});
3 changes: 3 additions & 0 deletions sentry.edge.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@
// https://docs.sentry.io/platforms/javascript/guides/nextjs/

import * as Sentry from "@sentry/nextjs";
import appPackage from "./package.json";

Sentry.init({
dsn: "https://8a5c1659d1c2ba3385be28dc7235ce56@o4507985141956608.ingest.de.sentry.io/4507985146609744",

// Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control.
tracesSampleRate: 1,

release: appPackage.version,

// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: false
});
2 changes: 2 additions & 0 deletions sentry.server.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import * as Sentry from "@sentry/nextjs";
import { nodeProfilingIntegration } from "@sentry/profiling-node";
import appPackage from "./package.json";

Sentry.init({
dsn: "https://8a5c1659d1c2ba3385be28dc7235ce56@o4507985141956608.ingest.de.sentry.io/4507985146609744",
Expand All @@ -13,5 +14,6 @@ Sentry.init({

// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: false,
release: appPackage.version,
integrations: [nodeProfilingIntegration()]
});
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ export function Preferences() {
[setCurrency]
);

// @ts-ignore
return (
<>
<div className="preferences">
Expand Down
2 changes: 1 addition & 1 deletion src/config/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export namespace EcencyConfigManager {

export const Conditional = memo<ConditionalProps>((props) => {
if (props.condition(CONFIG)) {
return props.children;
return props.children ?? <></>;
}

return props.fallback ?? <></>;
Expand Down
16 changes: 6 additions & 10 deletions src/features/shared/entry-list-content/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ export function EntryListContent({

return (
<>
{dataToRender.length > 0 ? (
<>
{dataToRender.map((e, i) => {
{dataToRender.length > 0
? dataToRender.map((e, i) => {
const l = [];

if (i % 4 === 0 && i > 0) {
Expand Down Expand Up @@ -82,13 +81,10 @@ export function EntryListContent({
);
}
return [...l];
})}
</>
) : (
showEmptyPlaceholder && (
<EntryListContentNoData username={username} loading={loading} section={section} />
)
)}
})
: showEmptyPlaceholder && (
<EntryListContentNoData username={username} loading={loading} section={section} />
)}
</>
);
}
Expand Down