Skip to content

Commit

Permalink
fix:An error occurs when adding a layer to a tag (microsoft#987)
Browse files Browse the repository at this point in the history
* test

* An error occurs when adding a layer to a tag

* Invalid space

Co-authored-by: Buddha Wang <[email protected]>
  • Loading branch information
v-yuhang and buddhawang authored Sep 1, 2021
1 parent 58c5e36 commit 8bef769
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/react/components/pages/editorPage/canvas.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ export default class Canvas extends React.Component<ICanvasProps, ICanvasState>
const labelsData = this.state.currentAsset.labelData;
if (labelsData) {
let relatedLabel;
if (inputTag[0].type === FieldType.Array || inputTag[0].type === FieldType.Object) {
if (inputTag[0]?.type === FieldType.Array || inputTag[0]?.type === FieldType.Object) {
let rowKey;
let columnKey;
if (inputTag[0].type === FieldType.Array) {
Expand Down

0 comments on commit 8bef769

Please sign in to comment.