ui: setting configuration (#1597)
This commit is contained in:
@@ -71,13 +71,13 @@ export const ConfigProvider: React.FC<ConfigProviderProps> = ({ children }) => {
|
||||
setConfig(response.data.config || {});
|
||||
};
|
||||
|
||||
const upsert = async (key: string, value: unknown, isSecret?: boolean) => {
|
||||
const upsert = async (key: string, value: unknown, isSecret: boolean = false) => {
|
||||
console.log('trying to upsert', key, value, isSecret);
|
||||
const query: UpsertConfigQuery = {
|
||||
key,
|
||||
value,
|
||||
is_secret: isSecret || null,
|
||||
key: key,
|
||||
value: value,
|
||||
is_secret: isSecret,
|
||||
};
|
||||
|
||||
await upsertConfig({
|
||||
body: query,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user