Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

fixed null requests to the CDN

Blue Mouse4242f858d178
diff --git a/src/pages/Project/View/ViewProject.tsx b/src/pages/Project/View/ViewProject.tsx
index b0aedc246..1e5455580 100644
--- a/src/pages/Project/View/ViewProject.tsx
+++ b/src/pages/Project/View/ViewProject.tsx
@@ -32,6 +32,7 @@ import _pickBy from 'lodash/pickBy'
import _every from 'lodash/every'
import _size from 'lodash/size'
import _truncate from 'lodash/truncate'
+import _isString from 'lodash/isString'
import PropTypes from 'prop-types'
import * as SwetrixSDK from '@swetrix/sdk'
@@ -1072,8 +1073,11 @@ const ViewProject = ({
// Initialising Swetrix SDK instance
useEffect(() => {
let sdk: any | null = null
- if (!_isEmpty(extensions)) {
- const processedExtensions = _map(extensions, (ext) => {
+
+ const filteredExtensions = _filter(extensions, (ext) => _isString(ext.fileURL))
+
+ if (!_isEmpty(filteredExtensions)) {
+ const processedExtensions = _map(filteredExtensions, (ext) => {
const { id: extId, fileURL } = ext
return {
id: extId,