diff --git a/package.json b/package.json index 415131137..cee8dec44 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bldrs", - "version": "1.0.1071", + "version": "1.0.1080", "main": "src/index.jsx", "license": "AGPL-3.0", "homepage": "https://github.com/bldrs-ai/Share", diff --git a/src/BaseRoutes.jsx b/src/BaseRoutes.jsx index 73c4fc248..47da1e10e 100644 --- a/src/BaseRoutes.jsx +++ b/src/BaseRoutes.jsx @@ -5,11 +5,11 @@ import {checkOPFSAvailability, setUpGlobalDebugFunctions} from './OPFS/utils' import debug from './utils/debug' import {navWith} from './utils/navigate' import useStore from './store/useStore' -import * as Sentry from '@sentry/react' +// import * as Sentry from '@sentry/react' import {useAuth0} from './Auth0/Auth0Proxy' -const SentryRoutes = Sentry.withSentryReactRouterV6Routing(Routes) +// const SentryRoutes = Sentry.withSentryReactRouterV6Routing(Routes) /** * From URL design: https://github.com/bldrs-ai/Share/wiki/URL-Structure @@ -86,7 +86,7 @@ export default function BaseRoutes({testElt = null}) { isLoading, isAuthenticated, getAccessTokenSilently, setAccessToken]) return ( - + }> - + ) } diff --git a/src/Components/Versions/VersionsPanel.jsx b/src/Components/Versions/VersionsPanel.jsx index 8ce2a2067..956f0a97a 100644 --- a/src/Components/Versions/VersionsPanel.jsx +++ b/src/Components/Versions/VersionsPanel.jsx @@ -32,27 +32,29 @@ export default function VersionsPanel({filePath, currentRef}) { const navigate = useNavigate() useEffect(() => { - const fetchCommits = async () => { - try { - const commits = await getCommitsForFile(repository, filePath, accessToken) - if (commits) { - const versionsInfo = commits.map((entry) => { - const extractedData = { - authorName: entry.commit.author.name, - commitMessage: entry.commit.message, - commitDate: entry.commit.author.date, - sha: entry.sha, - } - return extractedData - }) - setCommitData(versionsInfo) + if (setIsVersionsVisible) { + const fetchCommits = async () => { + try { + const commits = await getCommitsForFile(repository, filePath, accessToken) + if (commits) { + const versionsInfo = commits.map((entry) => { + const extractedData = { + authorName: entry.commit.author.name, + commitMessage: entry.commit.message, + commitDate: entry.commit.author.date, + sha: entry.sha, + } + return extractedData + }) + setCommitData(versionsInfo) + } + } catch (error) { + debug().log(error) } - } catch (error) { - debug().log(error) } + fetchCommits() } - fetchCommits() - }, [repository, filePath, accessToken]) + }, [accessToken, filePath, setIsVersionsVisible, repository]) /** diff --git a/src/Containers/CadView.jsx b/src/Containers/CadView.jsx index 827727545..2bcc0dcad 100644 --- a/src/Containers/CadView.jsx +++ b/src/Containers/CadView.jsx @@ -189,6 +189,8 @@ export default function CadView({ try { tmpModelRef = await loadIfc(pathToLoad, modelPath.gitpath) } catch (e) { + // eslint-disable-next-line no-console + console.trace('CadView#onViewer, error: ', e) tmpModelRef = undefined setSnackMessage(null) } diff --git a/src/index.jsx b/src/index.jsx index 12275bf8b..870c4e770 100644 --- a/src/index.jsx +++ b/src/index.jsx @@ -10,15 +10,15 @@ import { createRoutesFromChildren, matchRoutes, } from 'react-router-dom' -import * as Sentry from '@sentry/react' -import {BrowserTracing} from '@sentry/tracing' +// import * as Sentry from '@sentry/react' +// import {BrowserTracing} from '@sentry/tracing' import Auth0ProviderWithHistory from './Auth0ProviderWithHistory' import BaseRoutes from './BaseRoutes' import ApplicationError from './Components/ApplicationError' import {flags} from './FeatureFlags' -Sentry.init({ +/*Sentry.init({ dsn: process.env.SENTRY_DSN, environment: process.env.SENTRY_ENVIRONMENT, integrations: [ @@ -38,6 +38,7 @@ Sentry.init({ 'https://*.bldrs.dev', ], }) +*/ if (process.env.MSW_IS_ENABLED) { const {worker} = require('./__mocks__/browser') @@ -54,7 +55,7 @@ if (process.env.MSW_IS_ENABLED) { const root = createRoot(document.getElementById('root')) root.render( - }> +// }> @@ -68,5 +69,5 @@ root.render( - , +// , )