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.id === (item === null || item === void 0 ? void 0 : item[statusKey]));
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seat-editor",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",