Skip to content

Commit

Permalink
ResourceToggleCreator canceled type
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrikMatiasko committed Jun 22, 2024
1 parent 15c4afb commit e6b62a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const ResourceToggleCreator: FC<Props> = (props) => {
if (hasContent) {
setContentByType(resourceData.content)
} else if (resourceData.resourceUpdated) {
setContentByType(resourceData.resourceUpdated.content)
setContentByType(resourceData.resourceUpdated?.content || '')
} else {
setJsonData('')
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ReactNode } from 'react'
export type ResourceContentType = object | string | number | boolean

export type ResourceStatusType = 'PENDING' | 'TIMEOUT' | 'DONE'
export type ResourceUpdateStatusType = 'OK' | 'ERROR'
export type ResourceUpdateStatusType = 'OK' | 'ERROR' | 'CANCELED'

export type ResourceType = {
href: string
Expand Down

0 comments on commit e6b62a8

Please sign in to comment.