seat-editor 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -108,7 +108,7 @@ const LayerView = (props) => {
|
|
|
108
108
|
const finalProps = isUsingMapping ? editorItem[mappingKey] : editorItem;
|
|
109
109
|
if (colorMatchKey) {
|
|
110
110
|
return finalProps.map((item) => {
|
|
111
|
-
const match = colorMatchKey === null || colorMatchKey === void 0 ? void 0 : colorMatchKey.find((key) => key.
|
|
111
|
+
const match = colorMatchKey === null || colorMatchKey === void 0 ? void 0 : colorMatchKey.find((key) => key.key == (item === null || item === void 0 ? void 0 : item[statusKey]));
|
|
112
112
|
if (match) {
|
|
113
113
|
return Object.assign(Object.assign({}, item), { properties: Object.assign(Object.assign({}, item.properties), { fill: match.color }) });
|
|
114
114
|
}
|