Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mewim committed Feb 8, 2024
1 parent 838eefd commit e5b579f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
1 change: 0 additions & 1 deletion src/server/utils/Database.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,6 @@ class Database {
});
nodeTables.sort((a, b) => a.name.localeCompare(b.name));
relTables.sort((a, b) => a.name.localeCompare(b.name));

relGroups.sort((a, b) => a.name.localeCompare(b.name));
rdf.sort((a, b) => a.name.localeCompare(b.name));
return { nodeTables, relTables, relGroups, rdf };
Expand Down
11 changes: 2 additions & 9 deletions src/utils/ValueFormatter.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import Moment from "moment";
import {
DATA_TYPES,
IRI_PROPERTY_NAME,
} from "./Constants";
import { DATA_TYPES, IRI_PROPERTY_NAME } from "./Constants";

class ValueFormatter {
constructor() {
Expand Down Expand Up @@ -55,11 +52,7 @@ class ValueFormatter {
}

beautifyValue(value, type, propName = "") {
if (
type === DATA_TYPES.STRING &&
(propName === IRI_PROPERTY_NAME)
) {
console.log("IRI", value);
if (type === DATA_TYPES.STRING && propName === IRI_PROPERTY_NAME) {
if (value.startsWith("http")) {
// Extract the last part of the IRI as the label
const parts = value.split("/");
Expand Down

0 comments on commit e5b579f

Please sign in to comment.