Fix: typescript problem with inventory indexing
This commit is contained in:
@@ -98,6 +98,7 @@ export async function set_single_service<T extends keyof Services>(
|
||||
inventory.services = inventory.services || {};
|
||||
inventory.services[service_name] = inventory.services[service_name] || {};
|
||||
|
||||
// @ts-expect-error: This doesn't check
|
||||
inventory.services[service_name][instance_key] = service_config;
|
||||
console.log("saving inventory", inventory);
|
||||
return callApi("set_inventory", {
|
||||
|
||||
Reference in New Issue
Block a user