ptyin commented on code in PR #6169:
URL: https://github.com/apache/incubator-seata/pull/6169#discussion_r1441424450


##########
saga/seata-saga-statemachine-designer/src/utils/index.js:
##########
@@ -60,12 +60,12 @@ export function setProperties(businessObject, properties, 
override) {
 export function is(element, target) {
   const type = element?.businessObject?.Type || element?.Type || element;
 
-  if (target === 'State') {
-    return type === 'ServiceTask';
+  if (target === 'Task') {

Review Comment:
   Yes. This function is to check the type for an element. For now, I need to 
know if an element is a ‘Task’ or not, not if it is a 'State'.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to