Fix config name extraction in frontend

pull/4/head
Boaz Poolman 2021-03-25 20:57:58 +01:00
parent 76d114242c
commit 43c8678845
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ const ConfigList = ({ diff, isLoading }) => {
let formattedRows = []; let formattedRows = [];
Object.keys(diff.fileConfig).map((configName) => { Object.keys(diff.fileConfig).map((configName) => {
const type = configName.split('.')[0]; // Grab the first part of the filename. const type = configName.split('.')[0]; // Grab the first part of the filename.
const name = configName.split(/\.(.+)/)[1].split('.')[0] // Grab the rest of the filename minus the file extension. const name = configName.split(/\.(.+)/)[1]; // Grab the rest of the filename minus the file extension.
formattedRows.push({ formattedRows.push({
config_name: name, config_name: name,