Skip to content

Commit

Permalink
#538 - wip - fix notification list
Browse files Browse the repository at this point in the history
  • Loading branch information
quentinovega committed Aug 22, 2023
1 parent 54f09b4 commit b9fce4b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ export function SimpleNotification(props: ISimpleNotificationProps) {
openSubMetadataModal({
save: props.accept,
value: props.notification.action.api!,
api: props.notification.action.api?._id,
plan: props.notification.action.plan!._id,
team: props.notification.action.team,
notification: props.notification,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,11 @@ export const SubscriptionMetadataModal = <T extends IWithTesting>(props: Subscri
})


if (!!props.api && apiQuery.isLoading) {
console.debug(props.plan, planQuery.data, apiQuery.data)

if (!!props.api && apiQuery.isLoading || props.plan && planQuery.isLoading) {
return <div className="modal-content"><Spinner /></div>
} else if (!props.api || (apiQuery.data && !isError(apiQuery.data))) {
} else if (!props.api && planQuery.data || (apiQuery.data && !isError(apiQuery.data))) {
const plan = !!props.plan ? !isError(planQuery.data) ? planQuery.data : undefined : undefined

const maybeSubMetadata = Option(props.subscription)
Expand Down
1 change: 0 additions & 1 deletion daikoku/javascript/src/services/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1516,7 +1516,6 @@ export const graphql = {
api {
_id
name
testing
}
team {
_id
Expand Down

0 comments on commit b9fce4b

Please sign in to comment.