Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
fix(tasks): remove hard dependency on blockId in PropertyLabel (#973)
teoe617a1052d20
diff --git a/js/app/packages/core/component/Properties/component/panel/PropertyLabel.tsx b/js/app/packages/core/component/Properties/component/panel/PropertyLabel.tsxindex f9edb495e2..1e23cbed4f 100644--- a/js/app/packages/core/component/Properties/component/panel/PropertyLabel.tsx+++ b/js/app/packages/core/component/Properties/component/panel/PropertyLabel.tsx@@ -1,4 +1,4 @@-import { useBlockId, useMaybeBlockAliasedName } from '@core/block';+import { useMaybeBlockAliasedName, useMaybeBlockId } from '@core/block';import { DeprecatedIconButton } from '@core/component/DeprecatedIconButton';import DeleteIcon from '@icon/bold/x-bold.svg';import PinIcon from '@icon/regular/push-pin.svg';@@ -31,7 +31,7 @@ export const PropertyLabel: Component<PropertyLabelProps> = (props) => {onPropertyUnpinned,pinnedPropertyIds,} = usePropertiesContext();- const blockId = useBlockId();+ const maybeBlockId = useMaybeBlockId();const blockName = useMaybeBlockAliasedName();const isBuiltin =blockName &&@@ -65,11 +65,12 @@ export const PropertyLabel: Component<PropertyLabelProps> = (props) => {};const handleDeleteConfirm = async () => {+ if (!maybeBlockId) return;try {await deleteMutation.mutateAsync({entityPropertyId: props.property.propertyId,entityType,- entityId: blockId,+ entityId: maybeBlockId,});setDeleteConfirmVisible(false);onPropertyDeleted();