Skip to content

Commit

Permalink
clone schema
Browse files Browse the repository at this point in the history
  • Loading branch information
FrogTheFrog committed Apr 5, 2018
1 parent f357d45 commit 68e82f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/renderer/schemas/config-presets.schema.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { userConfiguration } from "./user-configuration.schema";
import { cloneDeep } from "lodash";

export const configPresets = {
type: 'object',
patternProperties: {
"^.+$": (() => {
let config = userConfiguration;
let config = cloneDeep(userConfiguration);
delete config.properties.version;

let addStrictValidation = (data: any) => {
Expand Down

0 comments on commit 68e82f0

Please sign in to comment.