Skip to content

Commit

Permalink
fix: header send error
Browse files Browse the repository at this point in the history
  • Loading branch information
scarqin committed Feb 9, 2023
1 parent da21132 commit 3cfbeb5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export abstract class TestServerService implements TestServer {
.map((val: BodyParam) => ({
checkbox: !!val.isRequired,
headerName: val.name,
headerValue: val.paramAttr?.example
headerValue: val['paramAttr.example'] || val.paramAttr?.example
}));
};
const formatBody = (inData: Partial<ApiData>) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export class ExtensionService {
let result = {} as ExtensionInfo;
const { code, data }: any = await this.requestDetail(name);
Object.assign(result, data);
if (this.installedMap.has(name)) {
if (this.installedMap?.has(name)) {
Object.assign(result, this.installedMap.get(name), { installed: true });
result.enable = this.isEnable(result.name);
}
Expand Down

0 comments on commit 3cfbeb5

Please sign in to comment.