Skip to content
Snippets Groups Projects
Unverified Commit 5fcf4a3a authored by Ngoc Khuat's avatar Ngoc Khuat Committed by GitHub
Browse files

fix failed to start front-end development due to missing version.properties file (#18523)

parent 1fdc984c
No related branches found
No related tags found
No related merge requests found
......@@ -191,7 +191,7 @@ class Settings {
docsUrl(page = "", anchor = "") {
let { tag } = this.get("version", {});
const matches = tag.match(/v[01]\.(\d+)(?:\.\d+)?(-.*)?/);
const matches = tag && tag.match(/v[01]\.(\d+)(?:\.\d+)?(-.*)?/);
if (matches) {
if (
......
......@@ -14,6 +14,7 @@ describe("MetabaseSettings.docsUrl", () => {
// all of these should point to the same doc URL
[
["v0.41.0", "v0.41"],
[undefined, "latest"],
["v0.41.1-SNAPSHOT", "latest"],
["v0.41.2-rc1", "v0.41"],
["v0.41.3-RC2", "v0.41"],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment