Restructuring calculator data in database and improve api surface
This commit is contained in:
@@ -52,7 +52,7 @@
|
||||
if (savedInputStringified) {
|
||||
input = JSON.parse(savedInputStringified);
|
||||
} else {
|
||||
const res = await api.calculator.config.get();
|
||||
const res = await api.calculator.standards.config.get();
|
||||
if (res.error) throw res.error;
|
||||
Value.Assert(StandardsConfigSchema, res.data);
|
||||
input.standardsConfig = res.data;
|
||||
|
||||
Reference in New Issue
Block a user