{menuText}
diff --git a/lib/src/Components/Map/Subcomponents/ItemPopupComponents/HeaderView.tsx b/lib/src/Components/Map/Subcomponents/ItemPopupComponents/HeaderView.tsx
index 89ef9697..d31f3cd3 100644
--- a/lib/src/Components/Map/Subcomponents/ItemPopupComponents/HeaderView.tsx
+++ b/lib/src/Components/Map/Subcomponents/ItemPopupComponents/HeaderView.tsx
@@ -37,7 +37,7 @@ export function HeaderView({
hideSubname = false,
showAddress = false,
}: {
- item: Item
+ item?: Item
api?: ItemsApi
editCallback?: any
deleteCallback?: any
@@ -58,10 +58,10 @@ export function HeaderView({
const [imageLoaded, setImageLoaded] = useState(false)
const avatar =
- (item.image && appState.assetsApi.url + item.image + '?width=160&heigth=160') ||
- item.image_external
- const title = item.name
- const subtitle = item.subname
+ (item?.image && appState.assetsApi.url + item.image + '?width=160&heigth=160') ||
+ item?.image_external
+ const title = item?.name
+ const subtitle = item?.subname
const [address] = useState('')
@@ -71,7 +71,7 @@ export function HeaderView({
setModalOpen(true)
event.stopPropagation()
}
-
+ if (!item) return null
return (
<>
diff --git a/lib/src/Components/Map/Subcomponents/ItemPopupComponents/PopupTextAreaInput.tsx b/lib/src/Components/Map/Subcomponents/ItemPopupComponents/PopupTextAreaInput.tsx
index e56153f6..49447c18 100644
--- a/lib/src/Components/Map/Subcomponents/ItemPopupComponents/PopupTextAreaInput.tsx
+++ b/lib/src/Components/Map/Subcomponents/ItemPopupComponents/PopupTextAreaInput.tsx
@@ -22,6 +22,7 @@ export const PopupTextAreaInput = ({
dataField={dataField}
placeholder={placeholder}
inputStyle={style}
+ required={false}
>
)
}
diff --git a/lib/src/Components/Map/Subcomponents/ItemPopupComponents/index.tsx b/lib/src/Components/Map/Subcomponents/ItemPopupComponents/index.tsx
index c60493ea..8c0e92d0 100644
--- a/lib/src/Components/Map/Subcomponents/ItemPopupComponents/index.tsx
+++ b/lib/src/Components/Map/Subcomponents/ItemPopupComponents/index.tsx
@@ -5,3 +5,4 @@ export { PopupCheckboxInput } from './PopupCheckboxInput'
export { TextView } from './TextView'
export { StartEndView } from './StartEndView'
export { PopupButton } from './PopupButton'
+export { HeaderView } from './HeaderView'
diff --git a/lib/src/types/ItemType.d.ts b/lib/src/types/ItemType.d.ts
index df56aff7..b9f5325e 100644
--- a/lib/src/types/ItemType.d.ts
+++ b/lib/src/types/ItemType.d.ts
@@ -16,4 +16,8 @@ export interface ItemType {
relations: boolean
template: string
questlog: boolean
+ small_form_edit?: boolean
+ botton_label?: string
+ text_input_label?: string
+ show_header_view_in_form?: boolean
}