mirror of
https://github.com/status-im/consul.git
synced 2025-01-10 05:45:46 +00:00
9e715842d9
Also fixes some typos in with-overlay
9 lines
278 B
JavaScript
9 lines
278 B
JavaScript
import { helper } from '@ember/component/helper';
|
|
|
|
export default helper(function flattenProperty([obj, prop], hash) {
|
|
const pages = hash.pages || [];
|
|
pages.push(...obj.pages);
|
|
obj.children.forEach(child => flattenProperty([child], { pages: pages }));
|
|
return pages;
|
|
});
|