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

Hotfix: remove alert on empty path (regression). Set debugging to warn. #753

Merged
merged 1 commit into from
Jul 4, 2023
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 0 additions & 1 deletion src/Share.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ export function getModelPath(installPrefix, pathPrefix, urlParams) {
let m = null
let filepath = urlParams['*']
if (filepath === '') {
alert(`Must provide a filepath`)
return null
}
let parts
Expand Down
4 changes: 2 additions & 2 deletions src/utils/debug.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/* eslint-disable no-unused-vars */
const OFF = 4
const ERROR = 3
const WARN = 2
const WARN = 2 // Use this as default for prod. Should never see these messages.
const INFO = 1
const DEBUG = 0
/* eslint-enable no-unused-vars */
let DEBUG_LEVEL = DEBUG
let DEBUG_LEVEL = WARN


/**
Expand Down