Skip to content

Commit 5ed1157

Browse files
committed
fix(ui): snapshot destroy: invalid snapshot name given fix
1 parent c8acb97 commit 5ed1157

File tree

1 file changed

+3
-3
lines changed
  • ui/packages/shared/pages/Snapshots/Snapshot

1 file changed

+3
-3
lines changed

ui/packages/shared/pages/Snapshots/Snapshot/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -390,12 +390,12 @@ export const SnapshotPage = observer((props: Props) => {
390390
</p>
391391
<SyntaxHighlight content={`dblab snapshot list`} />
392392
</div>
393-
<DestroySnapshotModal
393+
{snapshot && <DestroySnapshotModal
394394
isOpen={isOpenDestroyModal}
395395
onClose={() => setIsOpenDestroyModal(false)}
396-
snapshotId={props.snapshotId}
396+
snapshotId={snapshot.id}
397397
afterSubmitClick={redirectToSnapshot}
398-
/>
398+
/>}
399399
</div>
400400
</>
401401
)

0 commit comments

Comments
 (0)