Skip to content

Commit

Permalink
Fix file formatting (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
mewim authored Feb 8, 2024
1 parent fc97262 commit 48c430d
Showing 1 changed file with 2 additions and 9 deletions.
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 48c430d

Please sign in to comment.