Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: readonly for task statement (#6547)

boojack4f40592cf41f
diff --git a/frontend/src/components/Issue/logic/common.ts b/frontend/src/components/Issue/logic/common.ts
index 5f15253011..40d817d0f3 100644
--- a/frontend/src/components/Issue/logic/common.ts
+++ b/frontend/src/components/Issue/logic/common.ts
@@ -405,10 +405,11 @@ export const isTaskEditable = (task: Task): boolean => {
export const isGroupingChangeIssue = (issue: Issue): boolean => {
const route = useRoute();
- if (route.query.databaseGroupName !== "") {
+ if (route.query.databaseGroupName && route.query.databaseGroupName !== "") {
return true;
}
- if ((issue.payload as IssuePayload).grouping?.databaseGroupName !== "") {
+ const groupName = (issue.payload as IssuePayload).grouping?.databaseGroupName;
+ if (groupName && groupName !== "") {
return true;
}
return false;