M: Improve OSS -> RSForm navigation and fix term graph
Some checks failed
Frontend CI / build (22.x) (push) Waiting to run
Backend CI / build (3.12) (push) Has been cancelled

This commit is contained in:
Ivan 2024-08-19 19:53:51 +03:00
parent 0c10162718
commit 566c6be91d
2 changed files with 4 additions and 3 deletions

View File

@ -33,6 +33,8 @@ import { UserID, UserLevel } from '@/models/user';
import { PARAMETER } from '@/utils/constants';
import { errors, information } from '@/utils/labels';
import { RSTabID } from '../RSFormPage/RSTabs';
export interface ICreateOperationPrompt {
x: number;
y: number;
@ -206,7 +208,7 @@ export const OssEditState = ({ selected, setSelected, children }: OssEditStatePr
if (!node?.result) {
return;
}
router.push(urls.schema(node.result));
router.push(urls.schema_props({ id: node.result, tab: RSTabID.CST_LIST }));
},
[router, model]
);

View File

@ -99,8 +99,7 @@ function TermGraph({
);
useLayoutEffect(() => {
graphRef.current?.resetControls(true);
graphRef.current?.centerGraph();
graphRef.current?.fitNodesInView([], { animated: true });
}, [toggleResetView, graphRef]);
useLayoutEffect(() => {