Guest User

Untitled

a guest
Apr 21st, 2019
85
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data