fix group
This commit is contained in:
@@ -10,7 +10,7 @@ import { setRefreshToken, setToken } from '@/config/func'
|
|||||||
const DirectLogin: FC = () => {
|
const DirectLogin: FC = () => {
|
||||||
|
|
||||||
const [showModal, setShowModal] = useState<boolean>(false)
|
const [showModal, setShowModal] = useState<boolean>(false)
|
||||||
const [subscriptionId, setSubscriptionId] = useState<string>('')
|
const [subscriptionId, setSubscriptionId] = useState<string>('e6375048-4abc-4864-9614-198494631cae')
|
||||||
const directLogin = useDirectLogin()
|
const directLogin = useDirectLogin()
|
||||||
|
|
||||||
const handleSubmit = () => {
|
const handleSubmit = () => {
|
||||||
|
|||||||
@@ -97,7 +97,25 @@ const ObjectsLayer = ({
|
|||||||
.filter((obj) => obj.groupId && obj.type !== "group")
|
.filter((obj) => obj.groupId && obj.type !== "group")
|
||||||
.map((obj) => {
|
.map((obj) => {
|
||||||
const groupObject = objects.find((o) => o.id === obj.groupId);
|
const groupObject = objects.find((o) => o.id === obj.groupId);
|
||||||
if (!groupObject) return null;
|
// داده قدیمی/ناقص: groupId بدون شیء type:group در صفحه — مثل preview همه را نشان بده
|
||||||
|
if (!groupObject) {
|
||||||
|
return (
|
||||||
|
<ObjectRenderer
|
||||||
|
key={obj.id}
|
||||||
|
obj={obj}
|
||||||
|
isSelected={selectedObjectIds.includes(obj.id)}
|
||||||
|
transformerRef={transformerRef}
|
||||||
|
layerRef={layerRef}
|
||||||
|
onSelect={onSelect}
|
||||||
|
onUpdate={onUpdate}
|
||||||
|
draggable={tool === "select"}
|
||||||
|
onCellClick={onCellClick}
|
||||||
|
onCellDblClick={onCellDblClick}
|
||||||
|
selectedCellId={selectedCellId}
|
||||||
|
allObjects={objects}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
// Render with absolute position but wrapped in non-listening group
|
// Render with absolute position but wrapped in non-listening group
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user