Changed api call body's container model to available container + Fix API nullable values
This commit is contained in:
parent
4588aa9443
commit
8034652bdb
5 changed files with 12 additions and 14 deletions
|
@ -68,7 +68,7 @@ function HandleSetContainerList(
|
|||
setNewHistory(
|
||||
AddContainers(
|
||||
selectedContainer.children.length,
|
||||
response.Containers.map(container => container.properties.type),
|
||||
response.Containers.map(container => container.Type),
|
||||
selectedContainer.properties.id,
|
||||
configuration,
|
||||
history,
|
||||
|
@ -104,7 +104,7 @@ function HandleReplace(
|
|||
|
||||
const index = selectedContainer.parent.children.indexOf(selectedContainer);
|
||||
|
||||
const types = response.Containers.map(container => container.properties.type);
|
||||
const types = response.Containers.map(container => container.Type);
|
||||
const newHistoryBeforeDelete = AddContainers(
|
||||
index + 1,
|
||||
types,
|
||||
|
|
|
@ -62,7 +62,7 @@ function InitActions(
|
|||
|
||||
// API Actions
|
||||
for (const availableContainer of configuration.AvailableContainers) {
|
||||
if (availableContainer.Actions === undefined) {
|
||||
if (availableContainer.Actions === undefined || availableContainer.Actions === null) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue