Advertisement
Guest User

Untitled

a guest
Apr 21st, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. function findTableIds(properties) {
  2. const ids = map(properties, (property, key) => {
  3. if (get(property, 'lhv_table')) {
  4. return key;
  5. }
  6. else if (key === 'input') {
  7. return findTableIds(get(property, 'properties'));
  8. }
  9. });
  10.  
  11. return flatten(compact(ids));
  12. }
  13.  
  14. export function getTableVariablesId(config) {
  15. return findTableIds(get(config, 'property_schema.properties'));
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement