diff --git a/nuxt.config.js b/nuxt.config.js index 602a05eb..906d29bc 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -150,6 +150,7 @@ export default { clientIntegrations: { /* default integrations will still be added due to deep-merge */ ReportingObserver: false, // reporting is very noisy on CSP violation. + CaptureConsole: { levels: ['error'] }, }, }, sitemap: { diff --git a/pages/view/_iscnId.vue b/pages/view/_iscnId.vue index 3f44378b..10db3f43 100644 --- a/pages/view/_iscnId.vue +++ b/pages/view/_iscnId.vue @@ -855,8 +855,10 @@ export default class ViewIscnIdPage extends Vue { this.isPreminted = !!data.classId } catch (err) { this.isPreminted = false - // eslint-disable-next-line no-console - console.error(err) + if ((err as any).response?.status !== 404) { + // eslint-disable-next-line no-console + console.error(err); + } } } }