Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
9 lines
449 B
Plaintext
9 lines
449 B
Plaintext
import { fieldAffectsData } from '../fields/config/types.js';
|
|
import { APIError } from './APIError.js';
|
|
export class MissingEditorProp extends APIError {
|
|
constructor(field){
|
|
super(`RichText field${fieldAffectsData(field) ? ` "${field.name}"` : ''} is missing the editor prop. For sub-richText fields, the editor props is required, as it would otherwise create infinite recursion.`);
|
|
}
|
|
}
|
|
|
|
//# sourceMappingURL=MissingEditorProp.js.map |