mirror of
https://github.com/google/blockly.git
synced 2026-01-07 09:00:11 +01:00
fix: move Theme to use a Partial type for BlockStyle (#6532)
* fix: move theme to use Partial type * chore: remove useless error throwing * chore: format * chore: update validatedBlockStyle_ to use Partial
This commit is contained in:
@@ -222,10 +222,6 @@ export class FieldTextInput extends Field {
|
||||
const source = this.sourceBlock_ as BlockSvg;
|
||||
|
||||
if (this.borderRect_) {
|
||||
if (!source.style.colourTertiary) {
|
||||
throw new Error(
|
||||
'The renderer did not properly initialize the block style');
|
||||
}
|
||||
this.borderRect_.setAttribute('stroke', source.style.colourTertiary);
|
||||
} else {
|
||||
source.pathObject.svgPath.setAttribute(
|
||||
|
||||
Reference in New Issue
Block a user