Fix the design of the Variable chip (#9871)
- Use a React component for variable tags in tiptap - Fix the design of the variable chip - Always display a button to delete the chip 
This commit is contained in:
committed by
GitHub
parent
ac8c0c72cc
commit
1e9dce3fd5
@ -1,6 +1,6 @@
|
||||
import { useObjectMetadataItem } from '@/object-metadata/hooks/useObjectMetadataItem';
|
||||
import { RecordChip } from '@/object-record/components/RecordChip';
|
||||
import { VariableChip } from '@/object-record/record-field/form-types/components/VariableChip';
|
||||
import { VariableChipStandalone } from '@/object-record/record-field/form-types/components/VariableChipStandalone';
|
||||
import { ObjectRecord } from '@/object-record/types/ObjectRecord';
|
||||
import { isStandaloneVariableString } from '@/workflow/utils/isStandaloneVariableString';
|
||||
import {
|
||||
@ -48,7 +48,7 @@ export const WorkflowSingleRecordFieldChip = ({
|
||||
isStandaloneVariableString(draftValue.value)
|
||||
) {
|
||||
return (
|
||||
<VariableChip
|
||||
<VariableChipStandalone
|
||||
rawVariableName={objectMetadataItem.labelSingular}
|
||||
onRemove={onRemove}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user