Showing
1 changed file
with
1 additions
and
2 deletions
... | ... | @@ -864,7 +864,7 @@ |
864 | 864 | Sidebar.prototype.resetFlowmeter = function (graph) { |
865 | 865 | const { COMPONENT_TYPE, UUID, WIDTH, HEIGHT } = getFlowmeterAttrKey() |
866 | 866 | const componentType = Sidebar.prototype.enumComponentType |
867 | - const cells = Object.entries(graph?.getModel()?.cells || {}).map(([_, item]) => item) || [] | |
867 | + const cells = Object.entries(graph.getModel().cells || {}).map(([_, item]) => item) || [] | |
868 | 868 | const needReset = cells.filter(item => item.value && item.getAttribute(COMPONENT_TYPE) === componentType.FLOWMETER) |
869 | 869 | |
870 | 870 | needReset.forEach(item => { |
... | ... | @@ -933,7 +933,6 @@ function getFlowmeterAttrKey() { |
933 | 933 | WAVE_FIRST_COLOR: flowmeterAttr.WAVE_FIRST_COLOR, |
934 | 934 | WAVE_SECOND_COLOR: flowmeterAttr.WAVE_SECOND_COLOR, |
935 | 935 | WAVE_THIRD_COLOR: flowmeterAttr.WAVE_THIRD_COLOR, |
936 | - UUID: flowmeterAttr.UUID, | |
937 | 936 | COMPONENT_TYPE: basicAttr.COMPONENT_TYPE, |
938 | 937 | } |
939 | 938 | } | ... | ... |