Skip to content
Snippets Groups Projects
Commit 47e968f6 authored by Xiao Gui's avatar Xiao Gui
Browse files

bugfix: restore data filter use id

parent baa7ee02
No related branches found
No related tags found
No related merge requests found
import { Pipe, PipeTransform } from "@angular/core";
import { DataEntry } from "src/services/stateStore.service";
const isSubRegion = (high, low) => high.name === low.name
const isSubRegion = (high, low) => (high.id && low.id && high.id === low.id) || high.name === low.name
? true
: high.children && high.children.some
? high.children.some(r => isSubRegion(r, low))
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment