Merge pull request #3 from netSkope/pr/EP-40230/create-gha-on-push

EP- 40230: fixed bug.
This commit is contained in:
Suhal Vemu 2024-04-05 22:35:11 +05:30 committed by GitHub
commit c140e999d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 13 additions and 6 deletions

View File

@ -22,6 +22,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<span>{ state.name }</span>
</div>
<div class="content column">
<div class="value" if="{ state.value }">{ state.value }</div>
<div class="values value " each="{ value in state.values }" if="{ state.values }"><span class="detail-type">{value[0]+' : '}</span><span class="{value[0]}">{value[1]}</span></div>
</div>
</div>
@ -32,17 +33,23 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
onBeforeStart(props, state) {
state.key = props.entry.key;
state.icon = getHistoryIcon(props.entry.key);
state.name = props.entry.key;
state.values = Object.entries(JSON.parse(props.entry.value));
state.values=state.values.map(value=>
{
state.name = props.entry.key;
try {
state.values = Object.entries(JSON.parse(props.entry.value));
if (state.values.length==0){
throw new Error();
}
state.values=state.values.map(value=>
{
if(value[0]=='layers'){
return [value[0],value[1].join('\n')];
}
return value;
})
console.log(state.values)
}
catch(e){
state.value = String(props.entry.value)
}
},
onBeforeMount(props, state) {