Skip to content

Commit

Permalink
Merge pull request #505 from valpackett/patch-1
Browse files Browse the repository at this point in the history
fix: Make dropdowns referencing other sheets work
  • Loading branch information
sanchit3008 authored Mar 20, 2024
2 parents fdcb8b0 + 993d7cd commit b9681ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/modules/dataVerification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export function getDropdownList(ctx: Context, txt: string) {
const list: (string | number | boolean)[] = [];
if (iscelldata(txt)) {
const range = getcellrange(ctx, txt);
const index = getSheetIndex(ctx, ctx.currentSheetId) as number;
const index = getSheetIndex(ctx, range.sheetId) as number;
const d = ctx.luckysheetfile[index].data;
if (!d) return [];
for (let r = range.row[0]; r <= range.row[1]; r += 1) {
Expand Down

0 comments on commit b9681ce

Please sign in to comment.