Skip to content

Commit

Permalink
chore: reword docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
Aerilym committed Oct 9, 2024
1 parent c4962a7 commit 78bc2ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/sanity-cms/lib/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ export const isDraftModeEnabled = () => {
if (err) {
/**
* If the error is a "called outside a request scope" error, it means the function was called
* outside a request scope, so we can draft mode is not enabled. This happens when cms calls are
* made during SSR.
* outside a request's scope, so we can tell that draft mode is not enabled. This happens
* when cms calls are made during SSR.
*/
if ('message' in err && err.message.includes('called outside a request scope')) {
return false;
Expand Down

0 comments on commit 78bc2ff

Please sign in to comment.