Skip to content

Commit a107253

Browse files
authored
Merge pull request #2734 from datadryad/cedar-bugfix
Fix cedar bugs
2 parents b964c69 + bc3436d commit a107253

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

app/controllers/cedar_controller.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ def json_config
1212
readOnlyMode: params.key?(:viewer),
1313
hideEmptyFields: params.key?(:viewer),
1414

15+
terminologyIntegratedSearchUrl: 'https://terminology.metadatacenter.org/bioportal/integrated-search',
16+
1517
showSampleTemplateLinks: false,
1618
expandedSampleTemplateLinks: false,
1719
showTemplateRenderingRepresentation: false,

app/javascript/react/components/MetadataEntry/Description/Cedar.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export default function Cedar({resource, setResource, templates}) {
7070
if (!isEqual(template, templateRef.current)) {
7171
if (template === null) {
7272
axios.delete(
73-
`/cedar/save/${resource.id}`,
73+
`/cedar/delete/${resource.id}`,
7474
{headers: {'Content-Type': 'application/json; charset=utf-8', Accept: 'application/json'}},
7575
).then(() => {
7676
setMetadata(null);

config/routes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@
518518
get '/check/:resource_id', to: 'check'
519519
get '/preview/:resource_id', to: 'preview', as: 'cedar_preview'
520520
post '/save/:resource_id', to: 'save'
521-
delete '/save/:resource_id', to: 'delete'
521+
delete '/delete/:resource_id', to: 'delete'
522522
end
523523

524524
post '/metadata_entry_pages/cedar_popup', to: 'metadata_entry_pages#cedar_popup', as: 'cedar_popup'

0 commit comments

Comments
 (0)