fix .json overwriting
This commit is contained in:
@@ -97,7 +97,7 @@
|
||||
pluginsTabWrapper.innerHTML = '';
|
||||
|
||||
const objectsContainer = document.createElement('div');
|
||||
objectsContainer.className = 'card static';
|
||||
objectsContainer.className = 'card static row';
|
||||
objectsContainer.style = ``;
|
||||
const card = document.createElement('div');
|
||||
card.className = 'card static row';
|
||||
@@ -167,14 +167,14 @@
|
||||
if(typeof value === 'object') {
|
||||
const objectCard = document.createElement('div');
|
||||
objectCard.className = 'card static';
|
||||
objectCard.style = `min-height:400px;`;
|
||||
objectCard.style = `flex:1;height:100%`;
|
||||
objectCard.innerHTML = `
|
||||
<label style="font-weight:bold">${key}</label>
|
||||
<div style="overflow:auto" id="${metaData.name}-${key}"></div>
|
||||
`;
|
||||
objectsContainer.appendChild(objectCard);
|
||||
pluginsTabWrapper.appendChild(objectsContainer);
|
||||
const menu = createJsonTree({
|
||||
createJsonTree({
|
||||
container: document.getElementById(`${metaData.name}-${key}`),
|
||||
data: metaData[key],
|
||||
onChange: (data) => { },
|
||||
|
||||
Reference in New Issue
Block a user