diff --git a/webapp/src/blocks/imageBlock.ts b/webapp/src/blocks/imageBlock.ts index 0296621fe..41b989632 100644 --- a/webapp/src/blocks/imageBlock.ts +++ b/webapp/src/blocks/imageBlock.ts @@ -3,17 +3,10 @@ import { IOrderedBlock, MutableOrderedBlock } from './orderedBlock' interface ImageBlock extends IOrderedBlock { - + readonly url: string } class MutableImageBlock extends MutableOrderedBlock implements IOrderedBlock { - get order(): number { - return this.fields.order as number - } - set order(value: number) { - this.fields.order = value - } - get url(): string { return this.fields.url as string } diff --git a/webapp/src/blocks/textBlock.ts b/webapp/src/blocks/textBlock.ts index ced37a6a1..a1a671788 100644 --- a/webapp/src/blocks/textBlock.ts +++ b/webapp/src/blocks/textBlock.ts @@ -7,13 +7,6 @@ interface TextBlock extends IOrderedBlock { } class MutableTextBlock extends MutableOrderedBlock { - get order(): number { - return this.fields.order as number - } - set order(value: number) { - this.fields.order = value - } - constructor(block: any = {}) { super(block) this.type = 'text'