Fix: typescript problem with inventory indexing

This commit is contained in:
Johannes Kirschbauer
2025-04-22 12:10:25 +02:00
parent 44358405e2
commit 36872f4043
2 changed files with 2 additions and 1 deletions

View File

@@ -18,7 +18,7 @@ export default tseslint.config(
},
],
"tailwindcss/no-custom-classname": [
"error",
"warn",
{
callees: ["cx"],
whitelist: ["material-icons"],

View File

@@ -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", {