|
1 | 1 | import { getRoot, types } from "mobx-state-tree";
|
2 | 2 | import { observer } from "mobx-react";
|
3 | 3 | import { Collapse } from "antd";
|
4 |
| -import { ff } from "@humansignal/core"; |
5 | 4 |
|
6 | 5 | import ProcessAttrsMixin from "../../mixins/ProcessAttrs";
|
7 | 6 | import Registry from "../../core/Registry";
|
8 | 7 |
|
9 | 8 | import Types from "../../core/Types";
|
10 | 9 | import Tree from "../../core/Tree";
|
11 | 10 | import { isSelfServe } from "../../utils/billing";
|
12 |
| -import { FF_BULK_ANNOTATION, FF_DEV_3391 } from "../../utils/feature-flags"; |
| 11 | +import { FF_BULK_ANNOTATION, isFF } from "../../utils/feature-flags"; |
13 | 12 | import { guidGenerator } from "../../utils/unique";
|
14 | 13 |
|
15 | 14 | const { Panel } = Collapse;
|
@@ -120,17 +119,14 @@ const Model = types
|
120 | 119 | const CollapseModel = types.compose("CollapseModel", Model, ProcessAttrsMixin);
|
121 | 120 |
|
122 | 121 | const HtxCollapse = observer(({ item }) => {
|
123 |
| - const isBulkMode = ff.isActive(FF_BULK_ANNOTATION) && !isSelfServe() && item.store.hasInterface("annotation:bulk"); |
124 |
| - // forceRender is needed to have proper `isReady` for nested object tags. |
125 |
| - // with Interactive View All we won't need it, because tags are rendered as usual. |
126 |
| - const extraProps = ff.isActive(FF_DEV_3391) ? {} : { forceRender: true }; |
| 122 | + const isBulkMode = isFF(FF_BULK_ANNOTATION) && !isSelfServe() && item.store.hasInterface("annotation:bulk"); |
127 | 123 |
|
128 | 124 | return (
|
129 | 125 | <Collapse bordered={item.bordered} accordion={item.accordion}>
|
130 | 126 | {item.children
|
131 | 127 | .filter((i) => i.type === "panel" && (!isBulkMode || i.isIndependent))
|
132 | 128 | .map((i) => (
|
133 |
| - <Panel key={i._value} header={i._value} {...extraProps}> |
| 129 | + <Panel key={i._value} header={i._value}> |
134 | 130 | {Tree.renderChildren(i, item.annotation)}
|
135 | 131 | </Panel>
|
136 | 132 | ))}
|
|
0 commit comments