Browse Source

Fix dashboard-id regexp

pull/1/head
rozetko 6 years ago
parent
commit
ebf045013b
  1. 2
      server/src/migrations/0.3.2-beta.ts

2
server/src/migrations/0.3.2-beta.ts

@ -10,7 +10,7 @@ export async function convertPanelUrlToPanelId() {
return;
}
const panelUrlRegex = /^(.+)\/d\/(\w+)\/.+panelId=(\d+)/;
const panelUrlRegex = /^(.+)\/d\/([^\/]+)\/.+panelId=(\d+)/;
const newPanelUrlRegex = /^(.+)\/dashboard\/(\w+).+panelId=(\d+)/;
const updatedAnalyticUnits = analyticUnits
.map(analyticUnit => {

Loading…
Cancel
Save