Fix config name extraction in frontend
parent
76d114242c
commit
43c8678845
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue