Skip to content

Commit

Permalink
fix: timeframe always being reset to Today in widget editor modal on …
Browse files Browse the repository at this point in the history
…save (#31)
  • Loading branch information
donalmacanri authored Jan 23, 2023
1 parent d70f2b1 commit b0e41b7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ import { PluginStore } from "../../../plugins/PluginStore";
const saveWidget = async () => {
try {
if(![...activeType.requires, ...activeType.optional].indexOf('timeframe')) {
if([...activeType.requires, ...activeType.optional].indexOf('timeframe') === -1) {
editingWidget.timeRange = undefined;
}
Expand Down

0 comments on commit b0e41b7

Please sign in to comment.