{"record":{"id":"b8de8438c730ecba","repo":"octobercms/october","slug":"snackbar-options-action-label-must-be-a-string","errorCode":null,"errorMessage":"Snackbar options.action.label must be a string","messagePattern":"Snackbar options\\.action\\.label must be a string","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"modules/backend/assets/js/october/october.snackbar.js","lineNumber":56,"sourceCode":"                    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();\n            if (parameters === undefined) {\n                return;\n            }\n","sourceCodeStart":38,"sourceCodeEnd":74,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/backend/assets/js/october/october.snackbar.js#L38-L74","documentation":"Error \"Snackbar options.action.label must be a string\" thrown in octobercms/october.","triggerScenarios":"Thrown at modules/backend/assets/js/october/october.snackbar.js:56 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"}