diff options
author | Yuchen Pei <id@ypei.org> | 2023-10-02 17:03:18 +1100 |
---|---|---|
committer | Yuchen Pei <id@ypei.org> | 2023-10-02 17:03:18 +1100 |
commit | 02388f26c9ce8e28845166ef29307227fc35f7ce (patch) | |
tree | 98f8674f64c3bc9f691d2b58596eb7a0790b57ac | |
parent | a2ad653df4ac4f3260541f1b0b24efbf8ce9d1ef (diff) |
Minor fix: bom-area-parent requires bom-areas
-rw-r--r-- | bom.el | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -124,7 +124,9 @@ Used as parentfn for hierarchy." "Call BOM API and return hierarchy of VIC areas with forecasts." (let ((areas (hierarchy-new))) (hierarchy-add-trees - bom-area-hierarchy (bom-get-areas (bom-api-vic)) 'bom-area-parent) + bom-area-hierarchy + (setq bom-areas (bom-get-areas (bom-api-vic))) + 'bom-area-parent) (hierarchy-sort bom-area-hierarchy 'bom-area-lessp) areas)) |