Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function findTableIds(properties) {
- const ids = map(properties, (property, key) => {
- if (get(property, 'lhv_table')) {
- return key;
- }
- else if (key === 'input') {
- return findTableIds(get(property, 'properties'));
- }
- });
- return flatten(compact(ids));
- }
- export function getTableVariablesId(config) {
- return findTableIds(get(config, 'property_schema.properties'));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement