renderInlineAs empty HttpContextProvider
This commit is contained in:
parent
c1ba4cc719
commit
10e027454b
1 changed files with 4 additions and 1 deletions
|
|
@ -11,6 +11,7 @@ class HttpContextProvider extends BaseContextProvider {
|
|||
displayTitle: "HTTP",
|
||||
description: "Retrieve a context item from a custom server",
|
||||
type: "normal",
|
||||
renderInlineAs: "",
|
||||
};
|
||||
|
||||
override get description(): ContextProviderDescription {
|
||||
|
|
@ -47,7 +48,9 @@ class HttpContextProvider extends BaseContextProvider {
|
|||
name: item.name ?? this.options.title ?? "HTTP",
|
||||
});
|
||||
|
||||
return Array.isArray(json) ? json.map(createContextItem) : [createContextItem(json)];
|
||||
return Array.isArray(json)
|
||||
? json.map(createContextItem)
|
||||
: [createContextItem(json)];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue