We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c8acb97 + 5ed1157 commit f4af08bCopy full SHA for f4af08b
ui/packages/shared/pages/Snapshots/Snapshot/index.tsx
@@ -390,12 +390,12 @@ export const SnapshotPage = observer((props: Props) => {
390
</p>
391
<SyntaxHighlight content={`dblab snapshot list`} />
392
</div>
393
- <DestroySnapshotModal
+ {snapshot && <DestroySnapshotModal
394
isOpen={isOpenDestroyModal}
395
onClose={() => setIsOpenDestroyModal(false)}
396
- snapshotId={props.snapshotId}
+ snapshotId={snapshot.id}
397
afterSubmitClick={redirectToSnapshot}
398
- />
+ />}
399
400
</>
401
)
0 commit comments