Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
ukrbublik committed Jul 16, 2024
1 parent e350fa9 commit e0e537e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/core/modules/import/tree.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
import Immutable, { fromJS, Map } from "immutable";
import {checkTree, isValidTree} from "../utils/validation";
import {getLightTree, _fixImmutableValue, fixPathsInTree} from "../utils/treeUtils";
import {isJsonLogic} from "../utils/stuff";
import uuid from "../utils/uuid";

export {
isJsonLogic,
// for backward compatibility:
checkTree, isValidTree
};

export const getTree = (immutableTree, light = true, children1AsArray = true) => {
Expand Down
3 changes: 3 additions & 0 deletions packages/sandbox_simple/src/demo/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ const initTree = sanitizeTree(loadTree(initValue), loadedConfig).fixedTree;
//const initLogic = loadedInitLogic && Object.keys(loadedInitLogic).length > 0 ? loadedInitLogic : undefined;
//const initTree = sanitizeTree(loadFromJsonLogic(initLogic, loadedConfig), loadedConfig).fixedTree;

console.log(1, Utils);
console.log(3, Utils.isValidTree?.(initTree, loadedConfig));
console.log(4, Utils.Validation.isValidTree(initTree, loadedConfig));

export default class DemoQueryBuilder extends Component {

Expand Down

0 comments on commit e0e537e

Please sign in to comment.