Skip to content

Commit

Permalink
address build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
hjohns committed Apr 14, 2024
1 parent be54a31 commit 3e7084f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
19 changes: 0 additions & 19 deletions prez-components/src/custom-components/CustomItem.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,3 @@ export type ItemFields = typeof fields[number];

export type ItemProperties = Partial<Record<ItemFields, PrezProperty>>;

function getProps(obj, props) {
const result = {};
props.forEach(prop => {
if (obj.hasOwnProperty(prop)) {
result[prop] = obj[prop];
}
});
return result;
}

export function filterProps(properties: PrezProperties) {
return getProps(
properties,
[
'http://www.opengis.net/def/metamodel/ogc-na/status',
'http://www.w3.org/2000/01/rdf-schema#seeAlso'
]
)
}
1 change: 0 additions & 1 deletion prez-components/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import PrezUILiteral from "./components/PrezUILiteral.vue";
import PrezUIBlankNode from "./components/PrezUIBlankNode.vue";
import CustomCitation from './custom-components/CustomCitation.vue';
import CustomItem from './custom-components/CustomItem.vue';
import { filterProps } from "./custom-components/CustomItem.d";

export * from "./types";

Expand Down

0 comments on commit 3e7084f

Please sign in to comment.