diff --git a/app/src/protyle/render/av/filter.ts b/app/src/protyle/render/av/filter.ts index 89e7d6e60..48a2eca00 100644 --- a/app/src/protyle/render/av/filter.ts +++ b/app/src/protyle/render/av/filter.ts @@ -65,7 +65,7 @@ export const setFilter = async (options: { if (rectTarget.height === 0) { rectTarget = options.protyle.wysiwyg.element.querySelector(`[data-col-id="${options.target.dataset.colId}"]`).getBoundingClientRect(); } - const blockID = options.blockElement.getAttribute("data-node-id") + const blockID = options.blockElement.getAttribute("data-node-id"); const menu = new Menu("set-filter-" + options.filter.column, () => { const oldFilters = JSON.parse(JSON.stringify(options.data.view.filters)); const selectElement = menu.element.querySelector(".b3-select") as HTMLSelectElement; @@ -510,7 +510,7 @@ export const addFilter = (options: { operator: getDefaultOperatorByType(column.type), value: cellValue, type: column.type - } + }; options.data.view.filters.push(filter); options.menuElement.innerHTML = getFiltersHTML(options.data.view); setPosition(options.menuElement, options.tabRect.right - options.menuElement.clientWidth, options.tabRect.bottom, options.tabRect.height); diff --git a/app/src/protyle/render/av/openMenuPanel.ts b/app/src/protyle/render/av/openMenuPanel.ts index 626375454..e7af5296b 100644 --- a/app/src/protyle/render/av/openMenuPanel.ts +++ b/app/src/protyle/render/av/openMenuPanel.ts @@ -715,7 +715,7 @@ export const openMenuPanel = (options: { id, blockID }]); - options.blockElement.setAttribute(Constants.CUSTOM_SY_AV_VIEW, id) + options.blockElement.setAttribute(Constants.CUSTOM_SY_AV_VIEW, id); avPanelElement.remove(); event.preventDefault(); event.stopPropagation(); diff --git a/app/src/protyle/render/av/row.ts b/app/src/protyle/render/av/row.ts index 094e0f2ee..17a9be213 100644 --- a/app/src/protyle/render/av/row.ts +++ b/app/src/protyle/render/av/row.ts @@ -169,7 +169,7 @@ const updatePageSize = (options: { return; } options.nodeElement.setAttribute("data-page-size", options.newPageSize); - const blockID = options.nodeElement.getAttribute("data-node-id") + const blockID = options.nodeElement.getAttribute("data-node-id"); transaction(options.protyle, [{ action: "setAttrViewPageSize", avID: options.avID, diff --git a/app/src/protyle/render/av/view.ts b/app/src/protyle/render/av/view.ts index e18cdb7be..190bfdb3a 100644 --- a/app/src/protyle/render/av/view.ts +++ b/app/src/protyle/render/av/view.ts @@ -57,7 +57,7 @@ export const openViewMenu = (options: { protyle: IProtyle, blockElement: HTMLEle id, blockID: options.blockElement.dataset.nodeId }]); - options.blockElement.setAttribute(Constants.CUSTOM_SY_AV_VIEW, id) + options.blockElement.setAttribute(Constants.CUSTOM_SY_AV_VIEW, id); } }); menu.addItem({