Skip to content

Commit

Permalink
SOROKA-141: фикс строковых свойств (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
boatincow authored Oct 6, 2022
1 parent e7ed28e commit 9b9a90e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/properties/TextProperty.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const TextProperty = ({ value, onChange }: TextPropertyProps) => {
style={{ height: '84px' }}
type="text"
placeholder=""
defaultValue={value.value}
defaultValue={value}
onChange={(event) => {
onChange({ value: event.target.value })
}}
Expand Down
2 changes: 1 addition & 1 deletion src/stores/propertiesStore.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export type GeoPropertyProps = {
}

export type TextPropertyProps = {
value: { value: string }
value: string
showHelp: boolean
onChange: ({ value }: { value: string }) => void
}
Expand Down

0 comments on commit 9b9a90e

Please sign in to comment.