Skip to content

Commit

Permalink
fix: replace skip with skipOnClient to avoid runtime errors
Browse files Browse the repository at this point in the history
  • Loading branch information
agatha197 committed Oct 14, 2024
1 parent 81a6356 commit 39c2902
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion react/src/components/EndpointSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const EndpointSelect: React.FC<EndpointSelectProps> = ({
...EndpointLLMChatCard_endpoint
}
}
endpoint(endpoint_id: $endpoint_id) @skip(if: $skipEndpoint) {
endpoint(endpoint_id: $endpoint_id) @skipOnClient(if: $skipEndpoint) {
name
endpoint_id
...EndpointLLMChatCard_endpoint
Expand Down
2 changes: 1 addition & 1 deletion react/src/components/StorageHostSettingsPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const StorageHostSettingsPanel: React.FC<StorageHostSettingsPanelProps> = ({
quota_scope(
storage_host_name: $storage_host_name
quota_scope_id: $quota_scope_id
) @skip(if: $skipQuotaScope) {
) @skipOnClient(if: $skipQuotaScope) {
...QuotaSettingModalFragment
...QuotaScopeCardFragment
}
Expand Down
4 changes: 2 additions & 2 deletions react/src/components/StorageStatusPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,13 @@ const StorageStatusPanel: React.FC<{
project_quota_scope: quota_scope(
quota_scope_id: $project_quota_scope_id
storage_host_name: $storage_host_name
) @skip(if: $skipQuotaScope) {
) @skipOnClient(if: $skipQuotaScope) {
...UsageProgressFragment_usageFrgmt
}
user_quota_scope: quota_scope(
quota_scope_id: $user_quota_scope_id
storage_host_name: $storage_host_name
) @skip(if: $skipQuotaScope) {
) @skipOnClient(if: $skipQuotaScope) {
...UsageProgressFragment_usageFrgmt
}
}
Expand Down

0 comments on commit 39c2902

Please sign in to comment.