Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use link_ref instead of ref #35

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/AssignParametersTab/AssignParametersTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function AssignParametersTab({ arke }: { arke: TUnit }) {
.then((res) => {
setData(
res.data.content.parameters.map((item) => {
item.refLink = item.ref;
item.refLink = item.link_ref;
ilyichv marked this conversation as resolved.
Show resolved Hide resolved
return item;
})
);
Expand Down
6 changes: 3 additions & 3 deletions components/VisualSchema/ArkeNode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,15 +109,15 @@ function ArkeNode(props: ArkeNodeProps) {
/>
</div>

{!item.ref ? (
{!item.link_ref ? (
<>
<div className="mr-1">{item.label}</div>
<div>({item.type})</div>
</>
) : (
<div className="flex text-primary">
<div className="mr-1">{item.ref.label}</div>
<div>({item.ref.type ?? item.ref.arke_id})</div>
<div className="mr-1">{item.link_ref.label}</div>
<div>({item.link_ref.type ?? item.link_ref.arke_id})</div>
</div>
)}
</div>
Expand Down
2 changes: 1 addition & 1 deletion crud/arke/ArkeCrud.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export function ArkeCrud({
promise.then((res) => {
setFields(
res.data.content.parameters.map((item) => {
item.refLink = item.ref;
item.refLink = item.link_ref;
return item;
})
);
Expand Down
2 changes: 1 addition & 1 deletion crud/common/CrudAddEdit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export function CrudAddEdit(props: CrudProps) {
promise.then((res) => {
setFields(
res.data.content.parameters.map((item) => {
item.refLink = item.ref;
item.refLink = item.link_ref;
return item;
})
);
Expand Down
2 changes: 1 addition & 1 deletion crud/parameter/ParameterCrud.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export function ParameterAdd({
.then((res) => {
setFields(
res.data.content.parameters.map((item) => {
item.refLink = item.ref;
item.refLink = item.link_ref;
return item;
})
);
Expand Down
Loading