{"record":{"id":"4e3dd4fc396bdb3c","repo":"octobercms/october","slug":"snackbar-options-action-must-be-an-object","errorCode":null,"errorMessage":"Snackbar options.action must be an object","messagePattern":"Snackbar options\\.action must be an object","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"modules/backend/assets/js/october/october.snackbar.js","lineNumber":52,"sourceCode":"            }\n\n            if (options.timeout !== undefined) {\n                if (typeof options.timeout !== 'number') {\n                    throw new Error('Snackbar options.timeout must be a number');\n                }\n\n                if (options.timeout < 2000) {\n                    throw new Error('Snackbar options.timeout cannot be lower than 2000');\n                }\n\n                if (options.timeout > 8000) {\n                    throw new Error('Snackbar options.timeout cannot be higher than 8000');\n                }\n            }\n\n            if (options.action !== undefined) {\n                if (typeof options.action !== 'object') {\n                    throw new Error('Snackbar options.action must be an object');\n                }\n\n                if (typeof options.action.label !== 'string') {\n                    throw new Error('Snackbar options.action.label must be a string');\n                }\n\n                if (typeof options.action.callback !== 'function') {\n                    throw new Error('Snackbar options.action.callback must be a function');\n                }\n            }\n        }\n\n        function runQueue() {\n            if (displayedMessage !== null) {\n                return;\n            }\n\n            var parameters = queue.shift();","sourceCodeStart":34,"sourceCodeEnd":70,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/backend/assets/js/october/october.snackbar.js#L34-L70","documentation":"Error \"Snackbar options.action must be an object\" thrown in octobercms/october.","triggerScenarios":"Thrown at modules/backend/assets/js/october/october.snackbar.js:52 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b608633a7e8922487d91a8161499020121c3b3bf","analyzedAt":"2026-08-21T04:24:57.515Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}