Skip to content

Commit

Permalink
fix list result at 0 items
Browse files Browse the repository at this point in the history
  • Loading branch information
iwate committed Sep 17, 2020
1 parent 179cd62 commit f9383a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Aiplugs.PoshApp.Electron/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "poshapp",
"version": "v0.10.1-beta.2",
"version": "v0.10.1-beta.3",
"author": "aiplugs",
"description": "PowerShell GUI application",
"private": true,
Expand Down
3 changes: 3 additions & 0 deletions src/Aiplugs.PoshApp.Electron/src/clixml.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ export function parsePSDataCollection(data) {
throw new Error("Argument data need array.");

return data.map(d => {
if (d === null)
return { value: null, clixml: '<Nil />' };

const clixml = d.CliXml;
const objs = parseXML(clixml).querySelector('Objs');
const value = extract(objs);
Expand Down

0 comments on commit f9383a9

Please sign in to comment.