Component
What is the expected behaviour?
Description
The Hasura Console crashes with a TypeError when attempting to edit table permissions.
Error
TypeError: Cannot read properties of undefined (reading 'includes')
at useRootFieldPermissions.ts:34:41
Root Cause
In useRootFieldPermissions.ts, line 34:
const isSubscriptionStreamingEnabled =
!!configData?.experimental_features.includes('streaming_subscriptions');
Optional chaining (?.) only guards configData, not experimental_features. When configData exists but experimental_features is null (the default when HASURA_GRAPHQL_EXPERIMENTAL_FEATURES is not set), .includes() is called on null.
<!--
Provide a clear description of what you want to happen.
-->
### How to reproduce the issue?
Run Hasura v2.48.16 without setting HASURA_GRAPHQL_EXPERIMENTAL_FEATURES
Open the Console
Navigate to any table's permissions tab
Click to edit any permission
Console crashes
### Screenshots or Screencast
<img width="1050" height="714" alt="Image" src="https://github.com/user-attachments/assets/55387c39-0675-4152-b1a7-0c655be6639e" />
<!--
Providing relevant Screenshots/ Screencasts would help us to debug the issue quickly.
-->
### Please provide any traces or logs that could help here.
<!-- Provide your answer here. -->
### Any possible solutions/workarounds you're aware of?
<!-- Provide your answer here. -->
### Keywords
<!--
What keywords did you use when trying to find an existing bug report?
List them here so people in the future can find this one more easily.
-->
Component
What is the expected behaviour?
Description
The Hasura Console crashes with a TypeError when attempting to edit table permissions.
Error
TypeError: Cannot read properties of undefined (reading 'includes')
at useRootFieldPermissions.ts:34:41
Root Cause
In
useRootFieldPermissions.ts, line 34: