fix(Unit Tests): disable getITToolsSetting

This commit is contained in:
ShareVB committed 2025-08-19 21:41:35 +02:00
1 parent 100563cc70
commit d175e60ce9
1 file changed
+3
+3
View File
@@ -76,6 +76,9 @@ function useITStorage<T>(key: string, defaults: MaybeRef<T>, storage?: StorageLi
function getITToolsSetting<T>(key: string, defaultValue: MaybeRef<T>) {
const itToolsSettings = useITToolsSettings();
if (!itToolsSettings) {
return defaultValue;
}
if (key.includes(':')) {
const [tool, subkey] = key.split(':');
return (itToolsSettings[tool] || {})[subkey] as T ?? defaultValue;