A native macOS / windows / Linux database IDE built with Swift and AppKit. Connect to PostgreSQL, MySQL, SQLite, and Redis from a single app with a fast, keyboard-driven interface.
C++
fix(redis): freeze queued add-key input
Tobi8ecfaab9f4e3
diff --git a/macos/Presentation/Views/Redis/RedisAddKeySheet.swift b/macos/Presentation/Views/Redis/RedisAddKeySheet.swiftindex 9210cab..382ee93 100644--- a/macos/Presentation/Views/Redis/RedisAddKeySheet.swift+++ b/macos/Presentation/Views/Redis/RedisAddKeySheet.swift@@ -150,8 +150,10 @@ struct RedisAddKeySheet: View {isCreating = trueerrorMessage = nil+ let capturedKeyName = keyName+ let capturedKeyType = keyTypelet data: RedisKeyData- switch keyType {+ switch capturedKeyType {case .string: data = .string(value: stringValue)case .hash: data = .hash(fields: hashFields.filter { !$0.field.isEmpty })case .list: data = .list(items: listItems.filter { !$0.isEmpty })@@ -166,8 +168,8 @@ struct RedisAddKeySheet: View {Task {let result = await appState.performRedisOperation(for: redisContext) { redis intry await redis.redisInsertTyped(- key: keyName,- type: keyType,+ key: capturedKeyName,+ type: capturedKeyType,data: data,ttl: ttl)