Skip to content

Commit

Permalink
nit, #151
Browse files Browse the repository at this point in the history
  • Loading branch information
njkim committed Jan 16, 2025
1 parent 44558c7 commit 6308ef4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion arches_lingo/src/arches_lingo/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,6 @@ export const deleteSchemeRights = async (

export const createSchemeRightStatement = async (
schemeId: string,
tileId: string,
schemeRightStatementValue: SchemeRightStatement,
) => {
const response = await fetch(arches.urls.api_scheme_right_statement_tile_create, {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ async function saveRights() {
async function saveRightStatement() {
try {
if (!currentSchemeRightStatement.value?.tileid) {
await createSchemeRightStatement(route.params.id as string, schemeRight.value);
await createSchemeRightStatement(route.params.id as string, currentSchemeRightStatement.value);
} else {
await updateSchemeRightStatement(
route.params.id as string,
Expand Down Expand Up @@ -256,10 +256,8 @@ function editStatementValue(tileId: string) {
);
if (currentSchemeRightStatement && currentSchemeRightStatement?.tileid === tileId) {
console.log("this ran");
emit(OPEN_EDITOR, currentSchemeRightStatement?.tileid);
} else {
console.log("not this");
toast.add({
severity: ERROR,
summary: $gettext("Error"),
Expand Down Expand Up @@ -332,6 +330,7 @@ defineExpose({ getSectionValue });
(rowData as SchemeRightStatement)
.right_statement_label
"
:mode="VIEW"
></NonLocalizedString>
</div>
<div>
Expand All @@ -341,6 +340,7 @@ defineExpose({ getSectionValue });
(rowData as SchemeRightStatement)
.right_statement_type_metatype
"
:mode="VIEW"
></ReferenceDatatype>
</div>
</template>
Expand Down

0 comments on commit 6308ef4

Please sign in to comment.