Skip to content

Commit

Permalink
chore: adjust table type getter
Browse files Browse the repository at this point in the history
  • Loading branch information
purpose committed Jan 14, 2025
1 parent e99d2d6 commit 85710c2
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class ColVisibleRuntime implements ITableCharacterRuntime {

applyConfigToAttribute(character: ICharacterTable): void {
// TODO: only handle list table for now
const tableType = character.getAttribute().tableType;
const tableType = character.getRuntimeConfig().getAttribute().tableType;
if (tableType !== 'ListTable') {
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export class ColWidthRuntime implements ITableCharacterRuntime {

applyConfigToAttribute(character: ICharacterTable): void {
// TODO: only handle list table for now
const tableType = character.getAttribute().tableType;
const tableType = character.getRuntimeConfig().getAttribute().tableType;
if (tableType !== 'ListTable') {
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class RowHeightRuntime implements ITableCharacterRuntime {

applyConfigToAttribute(character: ICharacterTable): void {
// TODO: only handle list table for now
const tableType = character.getAttribute().tableType;
const tableType = character.getRuntimeConfig().getAttribute().tableType;
if (tableType !== 'ListTable') {
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class RowVisibleRuntime implements ITableCharacterRuntime {

applyConfigToAttribute(character: ICharacterTable): void {
// TODO: only handle list table for now
const tableType = character.getAttribute().tableType;
const tableType = character.getRuntimeConfig().getAttribute().tableType;
if (tableType !== 'ListTable') {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/vstory-core/src/character/table/runtime/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export class ThemeRuntime implements ITableCharacterRuntime {
applyConfigToAttribute(character: ICharacterTable): void {
const spec = character.getRuntimeConfig().getAttribute().spec;
const options = character.getRuntimeConfig().config.options;
const tableType = character.getAttribute().tableType;
const tableType = character.getRuntimeConfig().getAttribute().tableType;

if (!spec.theme) {
spec.theme = {};
Expand Down

0 comments on commit 85710c2

Please sign in to comment.